From 3705b912fc9928cd3043aa9f584f0380e58d9aba Mon Sep 17 00:00:00 2001 From: Dave Lucia Date: Fri, 8 Mar 2024 10:12:38 -0500 Subject: [PATCH] Add a workflow for releasing --- .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..6f8f6ce --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,20 @@ +name: Publish to Hex.pm + +on: + release: + types: [published] + +jobs: + Publish: + runs-on: ubuntu-latest + env: + HEX_API_KEY: ${{ secrets.HEXPM_SECRET }} + steps: + - uses: actions/checkout@v4 + - uses: erlef/setup-beam@v1 + with: + elixir-version: '1.16.1' + otp-version: '26.2.1' + - run: mix deps.get + - run: mix compile --docs + - run: mix hex.publish --yes