Skip to content

Commit 3d6511d

Browse files
authored
chore: publish to hex.pm workflow (#15)
1 parent 869d673 commit 3d6511d

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish Elixir package
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: erlef/setup-beam@v1
12+
with:
13+
version-file: .tool-versions
14+
version-type: strict
15+
- name: Restore dependencies cache
16+
uses: actions/cache@v3
17+
with:
18+
path: deps
19+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
20+
restore-keys: ${{ runner.os }}-mix-
21+
- run: mix deps.get
22+
- run: mix hex.publish --yes
23+
if: github.event_name == 'workflow_dispatch'
24+
env:
25+
HEX_API_KEY: ${{ secrets.HEX_AUTH_TOKEN }}

0 commit comments

Comments
 (0)