Skip to content

Commit e5ec65a

Browse files
authored
Update publish.yml
1 parent e7475be commit e5ec65a

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,8 @@ on:
77

88
jobs:
99
publish:
10-
env:
11-
MIX_ENV: docs
10+
uses: swoosh/actions/.github/workflows/publish.yml@main
11+
with:
12+
mode: 'package'
13+
secrets:
1214
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: Setup BEAM
18-
uses: erlef/setup-beam@v1
19-
with:
20-
elixir-version: 1.12.x
21-
otp-version: 24.x
22-
23-
- name: Restore dependencies cache
24-
uses: actions/cache@v2
25-
id: cache-elixir-deps
26-
with:
27-
path: |
28-
deps
29-
_build
30-
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
31-
32-
- name: Install Dependencies
33-
if: steps.cache-elixir-deps.outputs.cache-hit != 'true'
34-
run: mix do deps.get, deps.compile, compile
35-
36-
- name: Build and publish
37-
run: mix hex.publish --yes

0 commit comments

Comments
 (0)