From d040fdd2c5a2dc8ab2c8bc9dc9e04a8094685ac4 Mon Sep 17 00:00:00 2001 From: Robert Attard Date: Mon, 6 May 2024 16:44:59 -0400 Subject: [PATCH] use reusable publish action --- .github/workflows/release.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e226e8e..bf46306 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,7 +23,9 @@ jobs: release-gh: runs-on: ubuntu-latest - needs: [test, version] + needs: + - test + - version steps: - name: Checkout uses: actions/checkout@v4 @@ -34,18 +36,5 @@ jobs: runs-on: ubuntu-latest needs: [test, version] steps: - - uses: actions/checkout@v2 - - uses: actions/cache/restore@v4 - with: - path: ./build/packages - key: deps-${{ hashFiles('manifest.toml') }} - - uses: erlef/setup-beam@v1 - with: - otp-version: 26 - rebar3-version: 3 - gleam-version: "1.1.0" - - name: publish to hex - env: - HEXPM_USER: ${{ secrets.HEXPM_USER }} - HEXPM_PASS: ${{ secrets.HEXPM_PASS }} - run: gleam publish -y + - uses: actions/checkout@v4 + - uses: TanklesXL/gleam_actions/actions/hex_publish@main