Skip to content

Commit 00cfb30

Browse files
committed
💚 native bundle CI
1 parent 51b82e2 commit 00cfb30

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

.github/workflows/release-embed.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
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
@@ -61,7 +61,7 @@ jobs:
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"}]}' | \
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

.github/workflows/release-standalone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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

0 commit comments

Comments
 (0)