Fix missing version #21
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: Build artifacts | |
on: | |
push: | |
tags: [ "*" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Create executable | |
uses: sayyid5416/pyinstaller@v1 | |
with: | |
python_ver: '3.10' | |
spec: 'launcher.py' | |
requirements: 'requirements.txt' | |
options: --onefile, --name anime_rpc, --optimize 2, --additional-hooks-dir=. | |
clean_checkout: false | |
- name: Get version | |
id: get_version | |
shell: bash | |
run: echo "version=$(python -c 'import anime_rpc; print(anime_rpc.__version__)')" >> $GITHUB_OUTPUT | |
- name: Zip the module | |
run: | | |
mv LICENSE ./dist/ | |
Compress-Archive -Path dist/* -Destination anime_rpc_win.zip | |
- name: Create release | |
id: create_release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: v${{ steps.get_version.outputs.version }} | |
name: Release v${{ steps.get_version.outputs.version }} | |
artifacts: "./anime_rpc_win.zip" |