ci: update env #3
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: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: erlef/[email protected] | |
with: | |
otp-version: "26.0.2" | |
rebar3-version: "3" | |
gleam-version: "1.1.0" | |
- 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 | |
- run: gleam format --check src | |
- run: gleam publish -y | |
env: | |
HEXPM_API_KEY: ${{ secrets.HEX_DEPLOY_KEY }} | |
- uses: softprops/action-gh-release@v1 |