Lustre's CLI and development tooling: zero-config dev server, bundling, and scaffolding.
at main 802 B view raw
1name: release 2 3on: 4 push: 5 tags: ["v*"] 6 7jobs: 8 build: 9 runs-on: ubuntu-latest 10 steps: 11 - uses: actions/checkout@v3.1.0 12 - uses: erlef/setup-beam@v1.16.0 13 with: 14 otp-version: "26.0.2" 15 rebar3-version: "3" 16 gleam-version: "1.3.2" 17 18 - run: cargo install tomlq 19 - run: | 20 if [ "v$(tomlq version -f gleam.toml)" == "${{ github.ref_name }}" ]; then 21 exit 0 22 fi 23 echo "tag does not match version in gleam.toml, refusing to publish" 24 exit 1 25 - run: gleam format --check src test 26 - run: gleam test 27 - run: gleam publish -y 28 env: 29 HEXPM_USER: ${{ secrets.HEX_USERNAME }} 30 HEXPM_PASS: ${{ secrets.HEX_PASSWORD }} 31 32 - uses: softprops/action-gh-release@v1