File tree Expand file tree Collapse file tree 4 files changed +69
-32
lines changed
Expand file tree Collapse file tree 4 files changed +69
-32
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ on: [push, pull_request]
55env :
66 NODE_JS_VERSION : ' lts/*'
77
8- permissions :
9- contents : write
8+ permissions : {}
109
1110jobs :
1211 build :
2221 uses : actions/checkout@v4.1.6
2322 with :
2423 show-progress : false
25- token : ${{ secrets.ARCHIBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2624
2725 - name : Setup Node.js with npm
2826 uses : actions/setup-node@v4.0.2
4846 if-no-files-found : error
4947 name : ${{ matrix.os }}_ASF-WebConfigGenerator
5048 path : docs
51-
52- - name : Import GPG key
53- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
54- uses : crazy-max/ghaction-import-gpg@v6.1.0
55- with :
56- gpg_private_key : ${{ secrets.ARCHIBOT_GPG_PRIVATE_KEY }}
57- git_user_signingkey : true
58- git_commit_gpgsign : true
59-
60- - name : Deploy ASF-WebConfigGenerator
61- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
62- shell : sh
63- run : |
64- set -eu
65-
66- git add -A "docs"
67-
68- if ! git diff --cached --quiet; then
69- git commit -m "Automatic ASF-WebConfigGenerator deployment"
70- fi
71-
72- - name : Push changes
73- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && startsWith(matrix.os, 'ubuntu-') }}
74- uses : ad-m/github-push-action@v0.8.0
75- with :
76- github_token : ${{ secrets.GITHUB_TOKEN }}
77- branch : ${{ github.ref }}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ permissions: {}
99
1010jobs :
1111 upload :
12- environment : main
12+ environment : dev-crowdin
1313 runs-on : ubuntu-latest
1414
1515 steps :
Original file line number Diff line number Diff line change 1+ name : ASF-WebConfigGenerator-release
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ env :
9+ NODE_JS_VERSION : ' lts/*'
10+
11+ permissions :
12+ contents : write
13+
14+ jobs :
15+ release :
16+ environment : release
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4.1.6
22+ with :
23+ show-progress : false
24+ token : ${{ secrets.ARCHIBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
25+
26+ - name : Setup Node.js with npm
27+ uses : actions/setup-node@v4.0.2
28+ with :
29+ check-latest : true
30+ node-version : ${{ env.NODE_JS_VERSION }}
31+
32+ - name : Verify Node.js
33+ run : node -v
34+
35+ - name : Verify npm
36+ run : npm -v
37+
38+ - name : Install npm modules for ASF-WebConfigGenerator
39+ run : npm ci --no-progress
40+
41+ - name : Build ASF-WebConfigGenerator
42+ run : npm run-script build --no-progress
43+
44+ - name : Import GPG key
45+ uses : crazy-max/ghaction-import-gpg@v6.1.0
46+ with :
47+ gpg_private_key : ${{ secrets.ARCHIBOT_GPG_PRIVATE_KEY }}
48+ git_user_signingkey : true
49+ git_commit_gpgsign : true
50+
51+ - name : Deploy ASF-WebConfigGenerator
52+ shell : sh
53+ run : |
54+ set -eu
55+
56+ git add -A "docs"
57+
58+ if ! git diff --cached --quiet; then
59+ git commit -m "Automatic ASF-WebConfigGenerator deployment"
60+ fi
61+
62+ - name : Push changes
63+ uses : ad-m/github-push-action@v0.8.0
64+ with :
65+ github_token : ${{ secrets.GITHUB_TOKEN }}
66+ branch : ${{ github.ref }}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ permissions:
1010
1111jobs :
1212 update :
13- environment : main
13+ environment : dev-crowdin
1414 runs-on : ubuntu-latest
1515
1616 steps :
You can’t perform that action at this time.
0 commit comments