Skip to content

ci: Building and releasing the Windows executable within the pipeline #1

ci: Building and releasing the Windows executable within the pipeline

ci: Building and releasing the Windows executable within the pipeline #1

Workflow file for this run

name: Release Windows Build

Check failure on line 1 in .github/workflows/release_exe.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_exe.yml

Invalid workflow file

(Line: 19, Col: 12): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.GITHUB_TOKEN
on:
workflow_dispatch:
inputs:
release_name:
description: "Release name"
required: true
default: "latest"
jobs:
windows-release:
uses: ./.github/workflows/python-job.yml
secrets: inherit
with:
runner: windows-latest
python-version: "3.9"
release_name: test
run: |
pyinstaller --exclude demo dk-installer.py
ls -lR ./dist
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
gh release delete "${{ github.event.inputs.release_name }}" -y || true
gh release create "${{ github.event.inputs.release_name }}" ./dist/dk-installer/dk-installer.exe \
--title "Latest Release"