Skip to content

Commit cc97231

Browse files
committed
Attempt release note drafter AIO action
1 parent 5b4adca commit cc97231

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed
Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,40 @@
1-
name: Windows PyInstaller Builds
1+
name: Windows PyInstaller Builds and Release Notes
22

33
on:
44
push:
55
branches:
66
- main
77
paths-ignore:
88
- '**.md'
9-
pull_request:
10-
branches:
11-
- main
12-
paths-ignore:
13-
- '**.md'
149

1510
jobs:
1611
build:
17-
1812
runs-on: ubuntu-latest
1913

2014
steps:
15+
- id: release_drafter
16+
uses: release-drafter/release-drafter@v5
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
2120
- uses: actions/checkout@v2
2221

2322
- name: Package Application
2423
uses: JackMcKew/pyinstaller-action-windows@main
2524
with:
2625
path: .
2726

28-
- uses: actions/upload-artifact@v2
27+
- name: Upload binaries as artifact
28+
uses: actions/upload-artifact@v2
2929
with:
3030
name: PinetimeFlasher-for-Windows
31-
path: ./dist/windows
31+
path: ./dist/windows
32+
33+
- name: Upload binaries to release
34+
uses: svenstaro/upload-release-action@v2
35+
with:
36+
repo_token: ${{ secrets.GITHUB_TOKEN }}
37+
file: ./dist/windows/PinetimeFlasher.exe
38+
asset_name: PinetimeFlasher.exe
39+
tag: ${{ steps.release_drafter.outputs.tag_name }}
40+
overwrite: true

0 commit comments

Comments
 (0)