diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..4a0dfed --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish + +on: + push: + tags: + - '*' + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: erlef/setup-beam@v1 + with: + version-file: ".tool-versions" + + - run: mix deps.get + - run: mix hex.build + - run: mix hex.publish --yes --replace + env: + HEX_API_KEY: ${{ secrets.HEX_API_KEY }}