Skip to content

Commit fe7207c

Browse files
committed
chore: add publish docs
1 parent 12519d3 commit fe7207c

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Hex Publish Docs
2+
3+
on:
4+
workflow_dispatch:
5+
branches:
6+
- master
7+
8+
concurrency:
9+
group: hex-publish-docs
10+
cancel-in-progress: true
11+
12+
jobs:
13+
publish:
14+
name: Publish
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Verify Branch
18+
if: github.ref != 'refs/heads/master'
19+
run: exit 1
20+
- uses: actions/checkout@v4
21+
- name: Set up Elixir
22+
uses: erlef/setup-beam@v1
23+
with:
24+
elixir-version: '1.17'
25+
otp-version: '27.1'
26+
- name: Restore dependencies cache
27+
uses: actions/cache@v4
28+
with:
29+
path: deps
30+
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}
31+
restore-keys: ${{ runner.os }}-mix-
32+
- name: Install dependencies
33+
run: |
34+
mix local.rebar --force
35+
mix local.hex --force
36+
mix deps.get
37+
- name: Run Hex Publish Docs
38+
run: mix hex.publish docs --yes
39+
env:
40+
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}

0 commit comments

Comments
 (0)