Skip to content

Release

Release #5

Workflow file for this run

name: Release
on: [create]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-latest
if: github.event_name == 'create' && github.event.ref_type == 'tag'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: "true"
- name: Create release artifacts
run: |
chmod +x tools/create_release.sh
./tools/create_release.sh
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: build/*
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Trigger Arduino Package Index Update
run: |
curl -X POST https://api.github.com/repos/fobe-projects/fobe-arduino-index/dispatches \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.FOBE_ARDUINO_INDEX_REPO_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-d '{"event_type":"package-index-update"}'