-
Notifications
You must be signed in to change notification settings - Fork 27
54 lines (50 loc) · 1.6 KB
/
nix-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 📖 Documentation
on:
pull_request:
push:
branches:
- main
- docs
- tim-nix
# Paths can be used to only trigger actions when you have edited certain files, such as a file within the /docs directory
paths:
- ".github/workflows/nix-build.yml"
- "docs/**"
# Allow manually running in the actions tab
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: DeterminateSystems/magic-nix-cache-action@v2
- run: nix-shell --run "./english_build.sh"
#jobs:
# tests:
# name: Deploy docs
# runs-on: ubuntu-latest
# steps:
# - name: Checkout docs
# uses: actions/checkout@v3
# - name: Setup Nix
# uses: cachix/install-nix-action@v20
# with:
# nix_path: nixpkgs=channel:nixos-unstable
# - name: Nix Cache
# uses: DeterminateSystems/magic-nix-cache-action@v2
# - name: Deploy docs to github pages
# uses: ad-m/github-push-action@v0.5.0
# with:
# # Token for the repo
# # Can be passed in using $\{{ secrets.GITHUB_TOKEN }}
# github_token: ${{ secrets.GITHUB_TOKEN }}
# # Destination branch to push changes
# branch: gh-pages
# # Use force push to fully overwrite the destination branch
# force: true
# # We have to push from the folder where files were generated.
# # Same were the new repo was initialized in the previous step
# directory: ./docs/en