Skip to content

Commit c74278c

Browse files
committed
ghactions: setup docs deploy to github pages
1 parent 1dd04be commit c74278c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy docs to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
concurrency:
8+
group: pages
9+
cancel-in-progress: false
10+
11+
jobs:
12+
build-docs:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Setup Elixir
18+
uses: erlef/setup-beam@v1
19+
- name: Fetch Elixir dependencies
20+
run: mix deps.get
21+
- name: Generate docs
22+
run: mix docs
23+
- name: Upload docs artifact
24+
uses: actions/upload-pages-artifact@v3
25+
with:
26+
path: doc
27+
28+
deploy:
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
permissions:
33+
pages: write
34+
id-token: write
35+
runs-on: ubuntu-latest
36+
needs: build-docs
37+
steps:
38+
- name: Deploy to GitHub Pages
39+
id: deployment
40+
uses: actions/deploy-pages@v4

.tool-versions

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
elixir 1.18.3-otp-27
2+
erlang 27.3

0 commit comments

Comments
 (0)