Bump version 0.2.5 -> 0.3.0 #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package and release application | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
# if pytest is needed, install it here | |
# - name: Install Python required packages | |
# run: pip install -r requirements.txt pyinstaller | |
- name: Install Python required packages | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -e . | |
python -m pip install nuitka | |
- name: Package python project | |
run: .\scripts\build.bat | |
shell: cmd | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload windows artifact | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./dist/clab_datalogger_receiver_app.exe | |
asset_name: clab_datalogger_receiver.exe | |
asset_content_type: application/vnd.microsoft.portable-executable |