Skip to content

Commit 5aa5bcc

Browse files
committed
Refactor CI with nix
1 parent 10be86d commit 5aa5bcc

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,17 @@
1-
name: Publish docs via GitHub Pages
1+
name: Build
22
on:
33
push:
44
branches:
55
- master
6-
76
jobs:
87
build:
9-
name: Deploy docs
108
runs-on: ubuntu-latest
119
steps:
12-
- name: Checkout main
13-
uses: actions/checkout@v2
14-
- name: Setup Python 3.x
15-
uses: actions/setup-python@v2
10+
- uses: actions/checkout@v2.4.0
11+
- uses: cachix/install-nix-action@v15
1612
with:
17-
python-version: 3.x
18-
- name: Install mkdocs-material
19-
run: pip3 install mkdocs-material
20-
- name: Install mkdocs-static-i18n
21-
run: pip3 install mkdocs-static-i18n
22-
- name: Deploy docs
23-
run: mkdocs gh-deploy --force
13+
extra_nix_config: |
14+
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
15+
16+
- name: Build and deploy
17+
run: nix develop --command mkdocs gh-deploy --force

0 commit comments

Comments
 (0)