Skip to content

Commit

Permalink
ci: add GitHub Actions deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkanishka committed Nov 18, 2024
1 parent a4263bc commit e18ad64
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish Elixir Package to Hex

on:
push:
branches:
- master # Trigger only on pushes to the master branch

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v4

- name: Set up Elixir
uses: actions/checkout@v3


- name: Install Dependencies
run: mix deps.get

- name: Publish to Hex
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
run: |
mix hex.publish --yes

0 comments on commit e18ad64

Please sign in to comment.