Skip to content

Commit aab7458

Browse files
committed
workflow: add GitHub Actions workflow for release automation
This commit introduces a new GitHub Actions workflow that automates the release process. It triggers on tag creation, checks out the code, creates release artifacts, and publishes the release on GitHub. Additionally, it triggers an update for the Arduino Package Index. Signed-off-by: ChihoSin [email protected]
1 parent 9bb5447 commit aab7458

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/githubci.yml renamed to .github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Release
22

33
on: [create]
44

@@ -31,3 +31,11 @@ jobs:
3131
generate_release_notes: true
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Trigger Arduino Package Index Update
36+
run: |
37+
curl -X POST https://api.github.com/repos/fobe-projects/fobe-arduino-index/dispatches \
38+
-H "Accept: application/vnd.github+json" \
39+
-H "Authorization: Bearer ${{ secrets.FOBE_ARDUINO_INDEX_REPO_TOKEN }}" \
40+
-H "X-GitHub-Api-Version: 2022-11-28" \
41+
-d '{"event_type":"package-index-update"}'

0 commit comments

Comments
 (0)