Skip to content

Commit

Permalink
adds lines to publish package
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartjohnpage committed Feb 26, 2024
1 parent 4d7069f commit 53c4377
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ permissions:

jobs:
build:
name: Build and test
name: test and deploy
runs-on: ubuntu-22.04
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
MIX_ENV: test
strategy:
matrix:
Expand All @@ -30,4 +31,8 @@ jobs:
- name: Install dependencies
run: mix deps.get
- name: Run tests
run: mix test
run: mix test
- name: Deploy package
if: ${{ github.ref == 'refs/heads/main' }}
run: mix hex.publish --yes

0 comments on commit 53c4377

Please sign in to comment.