Skip to content

🐛 fix github action #44

🐛 fix github action

🐛 fix github action #44

name: Build binaries and Upload to Release
on:
push:
branches: [main]
paths:
- "version"
workflow_dispatch: {}
defaults:
run:
shell: bash
jobs:
build:
name: Build and Release for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
python-version: ["3.12"]
steps:

Check failure on line 24 in .github/workflows/build_and_release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build_and_release.yml

Invalid workflow file

You have an error in your yaml syntax on line 24
- name: Checkout code
uses: actions/checkout@v4
- name: "Setup Python, Poetry and Dependencies"
uses: packetcoders/action-setup-cache-python-poetry@main
with:
python-version: ${{matrix.python-version}}
- name: Build
run: |
poetry add pyinstaller
poetry run pyinstaller -F -n ToolDelta-$(<version)-${{ matrix.os == 'windows-latest' && 'windows.exe' || 'linux' }} -i logo.ico main.py
- name: Get version
run: echo "VERSION=$(<version)" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.VERSION }}
name: ${{ env.VERSION }}
files: dist/*