Skip to content

Commit

Permalink
ci: zip build before creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
vile committed May 16, 2024
1 parent 5a67678 commit 93af911
Showing 1 changed file with 30 additions and 11 deletions.
41 changes: 30 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
name: Build Windows Release
runs-on: windows-latest

permissions:
contents: write

steps:
- uses: actions/checkout@v4

Expand All @@ -21,18 +18,40 @@ jobs:
with:
python-version: '3.11.0'

- name: Install PyInstaller
run: pip install -U pyinstaller

- name: Install Script Dependencies
run: pip install -r requirements.txt
- name: Install PyInstaller & Script Dependencies
run: |
pip install -U pyinstaller
pip install -r requirements.txt
- name: Build with PyInstaller
run: pyinstaller main.py --onefile --name DiscordRoleScraper

- name: Create Release with Build
uses: softprops/action-gh-release@v2
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
files: |
name: windows-release
path: |
dist/DiscordRoleScraper.exe
config.toml
release:
name: Zip & Upload Release
runs-on: ubuntu-latest
needs: build

permissions:
contents: write

steps:
- name: Download Artifact
uses: actions/download-artifact@v3
with:
name: windows-release

- name: Zip Files
run: zip -r windows-release.zip DiscordRoleScraper.exe config.toml

- name: Create Release with Zipped Build
uses: softprops/action-gh-release@v2
with:
files: windows-release.zip

0 comments on commit 93af911

Please sign in to comment.