File tree Expand file tree Collapse file tree 2 files changed +19
-37
lines changed Expand file tree Collapse file tree 2 files changed +19
-37
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- master
6
-
7
- permissions :
8
- contents : read
9
- pages : write
10
- id-token : write
6
+ pull_request :
11
7
12
8
jobs :
13
9
build :
14
10
runs-on : ubuntu-latest
15
11
steps :
16
- - uses : actions/checkout@v3
17
- - uses : cachix/install-nix-action@v23
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+
15
+ - uses : cachix/install-nix-action@v27
18
16
with :
19
17
github_access_token : ${{ secrets.GITHUB_TOKEN }}
20
18
21
- - uses : cachix/cachix-action@v12
19
+ - uses : cachix/cachix-action@v15
22
20
with :
23
21
name : fcitx5-android
24
22
authToken : " ${{ secrets.CACHIX_AUTH_TOKEN }}"
@@ -27,17 +25,27 @@ jobs:
27
25
run : nix develop --command mkdocs build --site-dir public
28
26
29
27
- name : Upload artifact
30
- uses : actions/upload-pages-artifact@v1
28
+ uses : actions/upload-pages-artifact@v3
31
29
with :
30
+ name : github-pages
32
31
path : public
32
+ retention-days : 90
33
33
34
34
deploy :
35
+ if : github.ref_name == 'master'
36
+ needs : build
37
+
38
+ permissions :
39
+ pages : write
40
+ id-token : write
41
+
35
42
environment :
36
43
name : github-pages
37
44
url : ${{ steps.deployment.outputs.page_url }}
45
+
38
46
runs-on : ubuntu-latest
39
- needs : build
47
+
40
48
steps :
41
49
- name : Deploy to GitHub Pages
42
50
id : deployment
43
- uses : actions/deploy-pages@v1
51
+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments