Skip to content

doc comment links

doc comment links #16

Workflow file for this run

name: Release
on:
push:
tags:
- v*.*.*
jobs:
test:
uses: ./.github/workflows/test.yml
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
version="v$(cat gleam.toml | grep -m 1 "version" | sed -r "s/version *= *\"([[:digit:].]+)\"/\1/")"
if [ "$version" != "${{ github.ref_name }}" ]; then
echo "tag '${{ github.ref_name }}' does not match the version in gleam.toml"
echo "expected a tag name 'v$version'"
exit 1
fi
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/actions/deps_restore@main
- uses: TanklesXL/gleam_actions/actions/hex_publish@main