diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df38b1c..c7e142a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,9 +10,6 @@ jobs: name: Build Windows Release runs-on: windows-latest - permissions: - contents: write - steps: - uses: actions/checkout@v4 @@ -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