Skip to content

Commit 0b1860c

Browse files
committed
Add GitHub publish workflow
1 parent ea721d0 commit 0b1860c

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1+
name: Build
2+
13
on:
24
- push
5+
- workflow_call
36

47
jobs:
58
build:

.github/workflows/publish.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
call-build:
10+
uses: ./.github/workflows/build.yml
11+
12+
publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/download-artifact@v4
16+
with:
17+
name: pru_ledpwm
18+
19+
- name: Publish
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
tag: ${{ github.ref_name }}
23+
run: |
24+
gh release create "$tag" pru_ledpwm.* \
25+
--repo="$GITHUB_REPOSITORY" \
26+
--generate-notes

0 commit comments

Comments
 (0)