Skip to content

Commit

Permalink
Automatically tag HAL releases
Browse files Browse the repository at this point in the history
  • Loading branch information
jbeaurivage authored and ianrrees committed Sep 9, 2024
1 parent 4639886 commit e90e500
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release-crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,27 @@ jobs:
)
done
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.ATSAMD_BOT_SSH_PRIVKEY }}

- name: Release HAL crate
if: github.event.inputs.release_hal == 'yes'
shell: bash
run: |
set -ex
sudo apt-get install python3-pip && pip install tomlkit
# Force update of the registry
cargo update || true
cd "hal" && cargo publish --no-verify
version=$(python3 ../.github/workflows/crate_version.py Cargo.toml)
git tag -a "v${version}" -m "atsamd-hal release v${version}"
git push origin tag "v${version}"
- name: Release BSP crates
if: github.event.inputs.release_bsp == 'yes'
Expand Down

0 comments on commit e90e500

Please sign in to comment.