Skip to content

Commit 494d54e

Browse files
committed
Update GitHub Actions dependencies
1 parent 33a0bbf commit 494d54e

File tree

2 files changed

+19
-37
lines changed

2 files changed

+19
-37
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,20 @@ on:
33
push:
44
branches:
55
- master
6-
7-
permissions:
8-
contents: read
9-
pages: write
10-
id-token: write
6+
pull_request:
117

128
jobs:
139
build:
1410
runs-on: ubuntu-latest
1511
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
1816
with:
1917
github_access_token: ${{ secrets.GITHUB_TOKEN }}
2018

21-
- uses: cachix/cachix-action@v12
19+
- uses: cachix/cachix-action@v15
2220
with:
2321
name: fcitx5-android
2422
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
@@ -27,17 +25,27 @@ jobs:
2725
run: nix develop --command mkdocs build --site-dir public
2826

2927
- name: Upload artifact
30-
uses: actions/upload-pages-artifact@v1
28+
uses: actions/upload-pages-artifact@v3
3129
with:
30+
name: github-pages
3231
path: public
32+
retention-days: 90
3333

3434
deploy:
35+
if: github.ref_name == 'master'
36+
needs: build
37+
38+
permissions:
39+
pages: write
40+
id-token: write
41+
3542
environment:
3643
name: github-pages
3744
url: ${{ steps.deployment.outputs.page_url }}
45+
3846
runs-on: ubuntu-latest
39-
needs: build
47+
4048
steps:
4149
- name: Deploy to GitHub Pages
4250
id: deployment
43-
uses: actions/deploy-pages@v1
51+
uses: actions/deploy-pages@v4

.github/workflows/pull_request.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)