Skip to content

🔖 Bump to v1.6.2 #37

🔖 Bump to v1.6.2

🔖 Bump to v1.6.2 #37

Workflow file for this run

name: release
on:
push:
tags: ["v*"]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: erlef/setup-beam@v1.16.0
with:
otp-version: "27.0"
rebar3-version: "3"
gleam-version: "1.5.1"
- 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
name: check version
- run: gleam format --check
- run: gleam publish -y
env:
HEXPM_USER: ${{ secrets.HEX_USERNAME }}
HEXPM_PASS: ${{ secrets.HEX_PASSWORD }}
- uses: softprops/action-gh-release@v1