From 4726aafb6f8288508d5a89296eeb6e078f416873 Mon Sep 17 00:00:00 2001 From: Yordis Prieto Date: Sun, 7 May 2023 18:18:43 -0400 Subject: [PATCH] chore: add deploy workflow (#799) --- .github/workflows/deploy.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..6dd8da71 --- /dev/null +++ b/.github/workflows/deploy.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@v3 + - uses: erlef/setup-beam@v1 + with: + otp-version: 25 + elixir-version: 1.14 + - run: mix deps.get + - run: mix compile --docs + - run: mix hex.publish --yes