Skip to content

Release 1.1.6

Release 1.1.6 #29

Workflow file for this run

name: Release Windows Exec
on:
release:
types: [created, edited]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install pyinstaller
pip install -r requirements.txt
python setup.py build_ext --inplace
pip install .
- name: Build exec
id: build-exec
run: |
pyinstaller --clean -y spcal.spec
echo "::set-output name=version::$(python setup.py --version)"
- name: Upload binary
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/spcal_${{ steps.build-exec.outputs.version }}.exe
asset_name: spcal_${{ steps.build-exec.outputs.version }}.exe
asset_content_type: application/octet-stream