diff --git a/.github/workflows/bundle_windows.yml b/.github/workflows/bundle_windows.yml index 4dcf8e4..eb0489b 100644 --- a/.github/workflows/bundle_windows.yml +++ b/.github/workflows/bundle_windows.yml @@ -14,6 +14,8 @@ jobs: build: runs-on: windows-2019 + permissions: + contents: write strategy: matrix: python-version: [3.9] @@ -34,14 +36,22 @@ jobs: pip install cx_freeze - name: Bundle with cx_Freeze + shell: bash run: | python setup_cxfreeze.py build_exe pip install pip-licenses pip-licenses --format=plain-vertical --with-license-file --no-license-path --output-file=lib_licenses.txt python setup_cxfreeze.py finalize_cxfreeze + # Should only be one, but we don't know what it's named + mv ./dist/*.zip hippolyzer-windows-${{ github.ref }}.zip - name: Upload the artifact uses: actions/upload-artifact@v2 with: - name: hippolyzer-gui-windows-${{ github.sha }} - path: ./dist/** + name: hippolyzer-windows-${{ github.ref }} + path: ./hippolyzer-windows-${{ github.ref }}.zip + + - uses: ncipollo/release-action@v1.10.0 + with: + artifacts: hippolyzer-windows-${{ github.ref }}.zip + token: ${{ secrets.GITHUB_TOKEN }}