File tree Expand file tree Collapse file tree 5 files changed +14
-13
lines changed Expand file tree Collapse file tree 5 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1
- on : [push]
2
-
3
1
name : Dead code analysis
4
2
3
+ on : [merge_group, push, pull_request]
4
+
5
5
jobs :
6
6
deadnix :
7
7
name : Deadnix
Original file line number Diff line number Diff line change 1
- name : doc
1
+ name : Documentation
2
2
3
- on :
4
- push :
5
- branches :
6
- - main
3
+ on : [merge_group, push, pull_request]
7
4
8
5
jobs :
9
6
deploy :
22
19
- name : Build
23
20
run : nix build .#doc
24
21
- name : Deploy
22
+ if : github.ref == 'refs/heads/main'
25
23
uses : peaceiris/actions-gh-pages@v4
26
24
with :
27
25
github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 4
4
workflow_dispatch : # allows manual triggering
5
5
schedule :
6
6
- cron : ' 0 0 * * *' # runs daily at 00:00
7
+ merge_group :
8
+ pull_request :
7
9
push :
8
- branches :
9
- - main
10
10
11
11
jobs :
12
12
build :
15
15
- uses : actions/checkout@v4
16
16
- uses : cachix/install-nix-action@v31
17
17
- uses : cachix/cachix-action@v16
18
+ if : github.ref == 'refs/heads/main'
18
19
with :
19
20
name : microvm
20
21
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
Original file line number Diff line number Diff line change 4
4
workflow_dispatch : # allows manual triggering
5
5
schedule :
6
6
- cron : ' 0 0 * * *' # runs daily at 00:00
7
+ merge_group :
8
+ pull_request :
7
9
push :
8
- branches :
9
- - main
10
10
11
11
jobs :
12
12
build :
15
15
- uses : actions/checkout@v4
16
16
- uses : cachix/install-nix-action@v31
17
17
- uses : cachix/cachix-action@v16
18
+ if : github.ref == 'refs/heads/main'
18
19
with :
19
20
name : microvm
20
21
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
Original file line number Diff line number Diff line change 4
4
workflow_dispatch : # allows manual triggering
5
5
schedule :
6
6
- cron : ' 0 0 * * *' # runs daily at 00:00
7
+ merge_group :
8
+ pull_request :
7
9
push :
8
- branches :
9
- - main
10
10
11
11
jobs :
12
12
build :
15
15
- uses : actions/checkout@v4
16
16
- uses : cachix/install-nix-action@v31
17
17
- uses : cachix/cachix-action@v16
18
+ if : github.ref == 'refs/heads/main'
18
19
with :
19
20
name : microvm
20
21
authToken : ' ${{ secrets.CACHIX_AUTH_TOKEN }}'
You can’t perform that action at this time.
0 commit comments