Skip to content

Commit e7475be

Browse files
authored
Update publish-docs.yml
1 parent 017abba commit e7475be

File tree

1 file changed

+4
-27
lines changed

1 file changed

+4
-27
lines changed

.github/workflows/publish-docs.yml

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

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

0 commit comments

Comments
 (0)