Fixed workflow build
This commit is contained in:
parent
976300461f
commit
24f89c46f6
1 changed files with 7 additions and 14 deletions
|
|
@ -10,10 +10,10 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: https://code.forgejo.org/actions/checkout@v4
|
||||||
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: https://code.forgejo.org/actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
|
|
@ -26,12 +26,10 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile --console --name TinyWeb app.py
|
pyinstaller --onefile --console --name TinyWeb app.py
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Prepare artifact
|
||||||
uses: actions/upload-artifact@v4
|
run: |
|
||||||
with:
|
cp dist/TinyWeb TinyWeb-linux-x64
|
||||||
name: TinyWeb-linux-x64
|
chmod +x TinyWeb-linux-x64
|
||||||
path: dist/TinyWeb
|
|
||||||
if-no-files-found: error
|
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
|
|
@ -39,16 +37,11 @@ jobs:
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download artifact
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
name: TinyWeb-linux-x64
|
|
||||||
|
|
||||||
- name: Make executable
|
- name: Make executable
|
||||||
run: chmod +x TinyWeb-linux-x64
|
run: chmod +x TinyWeb-linux-x64
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: actions/forgejo-release@v2
|
uses: https://code.forgejo.org/actions/forgejo-release@v2
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
release-dir: .
|
release-dir: .
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue