File tree Expand file tree Collapse file tree 3 files changed +50
-3
lines changed
Expand file tree Collapse file tree 3 files changed +50
-3
lines changed Original file line number Diff line number Diff line change 2828
2929 - name : Build
3030 run : |
31- npm clean-install --omit=dev
31+ npm clean-install
3232 npm run build:embed
3333
3434 - name : Archive as Zip
6161 - name : Upload to S3
6262 uses : docker://rclone/rclone:latest
6363 with :
64- entrypoint : /bin/sh
64+ entrypoint : /bin/sh -c
6565 args : |
6666 rclone ${{ secrets.S3_ARGS }} copyto dist/embed.zip :s3:yuudi/rwa/embed/${{ github.ref_name }}/embed.zip
6767 echo '{"tag_name":"${{ github.ref_name }}","assets":[{"browser_download_url":"https://s3.yuudi.dev/rwa/embed/${{ github.ref_name }}/embed.zip"}]}' | \
Original file line number Diff line number Diff line change 1+ name : Release Native
2+
3+ on :
4+ push :
5+ tags :
6+ - v*
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+
14+ steps :
15+ - uses : actions/checkout@v3
16+
17+ - uses : actions/setup-node@v3
18+ with :
19+ node-version : 20
20+
21+ - name : Cache npm
22+ uses : actions/cache@v2
23+ with :
24+ path : ~/.npm
25+ key : RcloneWebuiAngular-${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
26+ restore-keys : |
27+ RcloneWebuiAngular-${{ runner.os }}-node-
28+
29+ - name : Build
30+ run : |
31+ npm clean-install
32+ npm run build:native
33+
34+ - name : Archive as Zip
35+ run : |
36+ cp src/i18n-index.html dist/build/index.html
37+ cd dist
38+ zip -r native.zip build
39+
40+ - name : Upload to S3
41+ uses : docker://rclone/rclone:latest
42+ with :
43+ entrypoint : /bin/sh -c
44+ args : |
45+ rclone ${{ secrets.S3_ARGS }} copyto dist/native.zip :s3:yuudi/rwa/native/${{ github.ref_name }}/native.zip
46+ echo '{"tag_name":"${{ github.ref_name }}","assets":[{"browser_download_url":"https://s3.yuudi.dev/rwa/native/${{ github.ref_name }}/native.zip"}]}' | \
47+ rclone ${{ secrets.S3_ARGS }} rcat :s3:yuudi/rwa/native/version.json
Original file line number Diff line number Diff line change 3030
3131 - name : Build
3232 run : |
33- npm clean-install --omit=dev
33+ npm clean-install
3434 sed -i 's/"baseHref": "\(.*\)"/"baseHref": "rclone-webui-angular\/\1"/g' ./angular.json
3535 npm run build:standalone
3636 cp src/i18n-index.html dist/build/index.html
You can’t perform that action at this time.
0 commit comments