Skip to content

Commit

Permalink
build executable in "release" workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shadoxxhd committed Oct 14, 2024
1 parent 114905a commit 49be847
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ jobs:
pyinstaller_ver: '==5.13.2'
spec: 'downloader.spec'
requirements: 'requirements.txt'
upload_exe_with_name: 'downloader.exe'
options: --onefile, --name "Steam Workshop Downloader", --windowed,
upload_exe_with_name: 'downloader.exe'
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Create Executable
uses: sayyid5416/pyinstaller@v1
with:
python_ver: '3.12'
pyinstaller_ver: '==5.13.2'
spec: 'downloader.spec'
requirements: 'requirements.txt'
upload_exe_with_name: 'downloader.exe'
options: --onefile, --name "Steam Workshop Downloader", --windowed,

- name: Delete old release if it already exists
run: gh release delete --yes "${RELEASE_VERSION}"
continue-on-error: true
Expand All @@ -33,7 +43,7 @@ jobs:
export "CHANGELOG_FILE=$(mktemp --suffix=.md)"
echo "CHANGELOG_FILE=${CHANGELOG_FILE}" >> $GITHUB_ENV
gh api --method POST -H "Accept: application/vnd.github+json" \
"/repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
"repos/${GITHUB_REPOSITORY}/releases/generate-notes" \
-f tag_name="${RELEASE_VERSION}" \
--jq ".body" > "${CHANGELOG_FILE}"
cat "${CHANGELOG_FILE}"
Expand Down

0 comments on commit 49be847

Please sign in to comment.