From 0d5e3ffee22848382160083d7bf2d3f5c5501f87 Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Sun, 26 Mar 2023 12:52:31 -0400 Subject: [PATCH] Add a release action --- .github/workflows/release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9262d14 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Release to Hex.pm + +on: + release: + types: [published] + +jobs: + Publish: + runs-on: ubuntu-latest + env: + HEX_API_KEY: ${{ secrets.HEXPM_SECRET }} + steps: + - uses: actions/checkout@v2 + - uses: erlef/setup-beam@v1.15 + with: + elixir-version: "1.14.0" + otp-version: "25.0.0" + - run: mix deps.get + - run: mix compile --docs + - run: mix hex.publish --yes