Update Windows bundling action to add artifact to release

This commit is contained in:
Salad Dais
2022-06-24 01:05:01 +00:00
parent baae0f6d6e
commit ef9df6b058

View File

@@ -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 }}