Skip to content

Commit 069ba11

Browse files
authored
Create publish-docs.yml
1 parent 9e691fa commit 069ba11

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish Docs
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
publish:
7+
env:
8+
MIX_ENV: docs
9+
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)