Skip to content

Update Version

Update Version #166

Workflow file for this run

name: Build Python Distribution
on: push
jobs:
build_release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.12"
- run: python3 -m pip install virtualenv cx_Freeze
- run: python3 -m virtualenv venv
- run: .\venv\Scripts\activate.bat
- run: pip install .
- run: cxfreeze bdist_msi
- uses: actions/upload-artifact@v2
with:
name: build_release
path: dist/OSCR-UI-win64.msi
release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [ build_release ]
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Download
uses: actions/download-artifact@v3
with:
name: build_release
path: .
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: OSCR-UI-win64.msi