Skip to content

Commit

Permalink
modify file names for release
Browse files Browse the repository at this point in the history
  • Loading branch information
kraanzu committed Oct 18, 2023
1 parent c6fcedd commit 2914d50
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,19 @@ jobs:
- name: Package app with pyinstaller
run: |
python -c "with open('dooit.py', 'w') as f: f.write('from dooit.__init__ import main\nmain()\n')"
pyinstaller --clean -F dooit.py --add-data=dooit/utils/default_config.py:dooit/utils/
pyinstaller --clean -F dooit.py --add-data=dooit/utils/default_config.py:dooit/utils/
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: dooit-windows
path: ./dist/dooit.exe
- name: Rename final file
run: cp ./dist/dooit.exe ./dist/windows-dooit.exe
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: win-dooit.exe
files: ./dist/dooit.exe
files: ./dist/windows-dooit.exe

linux-build:
runs-on: ubuntu-latest
Expand All @@ -57,17 +59,20 @@ jobs:
- name: Package app with pyinstaller
run: |
python -c "with open('dooit.py', 'w') as f: f.write('from dooit.__init__ import main\nmain()\n')"
pyinstaller --clean -F dooit.py --add-data=dooit/utils/default_config.py:dooit/utils/
pyinstaller --clean -F dooit.py --add-data=dooit/utils/default_config.py:dooit/utils/
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: dooit-linux
path: ./dist/dooit
- name: Rename final file
run: cp ./dist/dooit ./dist/linux-dooit
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: linux-dooit
files: ./dist/dooit
files: ./dist/linux-dooit

macOS-build:
runs-on: macOS-latest
Expand All @@ -85,14 +90,17 @@ jobs:
- name: Package app with pyinstaller
run: |
python -c "with open('dooit.py', 'w') as f: f.write('from dooit.__init__ import main\nmain()\n')"
pyinstaller --clean -F dooit.py --add-data=dooit/utils/default_config.py:dooit/utils/
pyinstaller --clean -F dooit.py --add-data=dooit/utils/default_config.py:dooit/utils/
- name: Upload a Build Artifact
uses: actions/upload-artifact@v3.1.0
with:
name: dooit-macos
path: ./dist/dooit
- name: Rename final file
run: cp ./dist/dooit ./dist/macos-dooit
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: mac-dooit
files: ./dist/dooit
files: ./dist/macos-dooit

0 comments on commit 2914d50

Please sign in to comment.