We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869d673 commit 3d6511dCopy full SHA for 3d6511d
.github/workflows/publish.yaml
@@ -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
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