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