point at correct actions from gleam_actions #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
test: | |
uses: ./.github/workflows/test.yml | |
version: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- run: cargo install tomlq | |
- run: | | |
if [ "v$(tomlq version -f gleam.toml)" == "${{ github.ref_name }}" ]; then | |
exit 0 | |
fi | |
echo "tag does not match version in gleam.toml, refusing to publish" | |
exit 1 | |
release-gh: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
- version | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
release-hex: | |
runs-on: ubuntu-latest | |
needs: | |
- test | |
- version | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: TanklesXL/gleam_actions/.github/actions/deps_restore@main | |
- uses: TanklesXL/gleam_actions/.github/actions/hex_publish@main |