forked from ZephyrLabs/PinetimeFlasher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attempt release note drafter AIO action
- Loading branch information
Showing
1 changed file
with
18 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,40 @@ | ||
name: Windows PyInstaller Builds | ||
name: Windows PyInstaller Builds and Release Notes | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- id: release_drafter | ||
uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Package Application | ||
uses: JackMcKew/pyinstaller-action-windows@main | ||
with: | ||
path: . | ||
|
||
- uses: actions/upload-artifact@v2 | ||
- name: Upload binaries as artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: PinetimeFlasher-for-Windows | ||
path: ./dist/windows | ||
path: ./dist/windows | ||
|
||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ./dist/windows/PinetimeFlasher.exe | ||
asset_name: PinetimeFlasher.exe | ||
tag: ${{ steps.release_drafter.outputs.tag_name }} | ||
overwrite: true |