-
Notifications
You must be signed in to change notification settings - Fork 9
649 lines (613 loc) · 21.2 KB
/
auto-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
name: Auto Build
on:
schedule:
# 每天 UTC 12:00(即北京时间 20:00)自动执行
- cron: '0 12 * * *'
push:
branches:
- dev
workflow_dispatch:
env:
ANDROID_NDK_VERSION: r25c
COMMIT_ID: "${{ github.sha }}"
NO_BUILD_PROMPT: "no new commits, no need to build."
jobs:
commit-num-check:
name: Check Commit Num
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get New Commits
id: get-commits
run: echo "NEW_COMMIT_COUNT=$(git log --oneline --since '24 hours ago' | wc -l)" >> $GITHUB_OUTPUT
- name: Warning
run: if [ $(git log --oneline --since '24 hours ago' | wc -l) <= 0 ]; then echo $NO_BUILD_PROMPT; fi
outputs:
commit-count: ${{ steps.get-commits.outputs.NEW_COMMIT_COUNT }}
resources-download:
name: Download Related Resources
runs-on: ubuntu-latest
needs: commit-num-check
if: ${{ needs.commit-num-check.outputs.commit-count > 0 }}
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Upload Documents
uses: actions/upload-artifact@v3
with:
name: documents
path: ./sealdice-builtins/data
gocqhttp-build:
name: Build Gocqhttp
runs-on: ubuntu-20.04
needs: commit-num-check
if: ${{ needs.commit-num-check.outputs.commit-count > 0 }}
strategy:
matrix:
# target: linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [ linux, windows, darwin ]
goarch: [ '386', amd64, arm64 ]
exclude:
- goos: linux
goarch: '386'
- goos: windows
goarch: arm64
- goos: darwin
goarch: '386'
fail-fast: true
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Get Commit ID
run: |
cd go-cqhttp
echo "GOCQ_CID=`git rev-parse HEAD`" >> $GITHUB_ENV;
- name: Cache dist get
id: cache-gocq-dist
uses: actions/cache@v3
env:
cache-name: cache-gocq-${{ matrix.goos }}-${{ matrix.goarch }}-dist
with:
path: ./go-cqhttp/output
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.GOCQ_CID }}
- name: Install Go
uses: actions/setup-go@v3
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
with:
go-version: stable
- name: Build Binary
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
working-directory: ./go-cqhttp
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLE: 0
run: |
if [ $GOOS = "windows" ]; then export BINARY_SUFFIX=".exe"; fi
export BINARY_NAME="go-cqhttp$BINARY_SUFFIX"
export LD_FLAGS="-w -s -X github.com/Mrs4s/go-cqhttp/internal/base.Version=${GOCQ_CID::7}-sealdicefork"
go build -o "output/$BINARY_NAME" -trimpath -ldflags "$LD_FLAGS" .
- name: Upload Gocqhttp
uses: actions/upload-artifact@v3
with:
name: go-cqhttp_${{ matrix.goos }}_${{ matrix.goarch }}
path: ./go-cqhttp/output
gocqhttp-android-build:
name: Build Gocqhttp (android, arm64)
runs-on: ubuntu-20.04
needs: commit-num-check
if: ${{ needs.commit-num-check.outputs.commit-count > 0 }}
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Get Commit ID
run: |
cd go-cqhttp
echo "GOCQ_CID=`git rev-parse HEAD`" >> $GITHUB_ENV;
- name: Cache dist get
id: cache-gocq-dist
uses: actions/cache@v3
env:
cache-name: cache-gocqa-dist
with:
path: ./go-cqhttp/output
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.GOCQ_CID }}
- name: Install Go
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
uses: actions/setup-go@v3
with:
go-version: stable
- name: Setup Android NDK
id: setup-ndk
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
uses: nttld/setup-ndk@v1
with:
ndk-version: ${{ env.ANDROID_NDK_VERSION }}
link-to-sdk: true
local-cache: true
- name: Build Binary
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
working-directory: ./go-cqhttp
env:
GOOS: android
GOARCH: arm64
CGO_ENABLE: 0
CC: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang
run: |
export LD_FLAGS="-w -s -X github.com/Mrs4s/go-cqhttp/internal/base.Version=${COMMIT_ID::7}-sealdicefork"
go build -o "output/go-cqhttp" -trimpath -ldflags "$LD_FLAGS" .
- name: Upload Gocqhttp
uses: actions/upload-artifact@v3
with:
name: go-cqhttp_android_arm64
path: ./go-cqhttp/output
ui-build:
name: Build UI
runs-on: ubuntu-latest
needs: commit-num-check
if: ${{ needs.commit-num-check.outputs.commit-count > 0 }}
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Get Commit ID
run: |
cd sealdice-ui
echo "UI_CID=`git rev-parse HEAD`" >> $GITHUB_ENV;
- name: Cache ui dist get
id: cache-ui-dist
uses: actions/cache@v3
env:
cache-name: cache-ui-dist
with:
path: ./sealdice-ui/dist
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ env.UI_CID }}
- if: ${{ steps.cache-ui-dist.outputs.cache-hit == 'true' }}
name: Show cache
continue-on-error: true
run: ls ./sealdice-ui/dist
- name: Install Node
uses: actions/setup-node@v3
if: ${{ steps.cache-ui-dist.outputs.cache-hit != 'true' }}
with:
node-version: latest
- name: Install Dependencies
if: ${{ steps.cache-ui-dist.outputs.cache-hit != 'true' }}
working-directory: ./sealdice-ui
run: npm install
- name: Build WebUI
if: ${{ steps.cache-ui-dist.outputs.cache-hit != 'true' }}
working-directory: ./sealdice-ui
run: npm run build
- name: Upload UI
uses: actions/upload-artifact@v3
with:
name: sealdice-ui
path: ./sealdice-ui/dist
core-build:
name: Build Core
runs-on: ubuntu-20.04
needs: ui-build
strategy:
matrix:
# target: linux/amd64, linux/arm64, windows/386, windows/amd64
goos: [ linux, windows ]
goarch: [ '386', amd64, arm64 ]
exclude:
- goos: linux
goarch: '386'
- goos: windows
goarch: arm64
fail-fast: true
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Install Cross-compiler for Windows
if: matrix.goos == 'windows'
run: sudo apt-get -y install mingw-w64
- name: Install Cross-compiler for Linux Arm64
if: matrix.goos == 'linux' && matrix.goarch == 'arm64'
run: sudo apt-get -y install gcc-aarch64-linux-gnu
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Install Dependencies
working-directory: ./sealdice-core
run: |
go mod tidy
go get .
- name: Get UI Resources
uses: actions/download-artifact@v3
with:
name: sealdice-ui
path: ./sealdice-core/static/frontend
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYMMDD
utcOffset: "+08:00"
- name: Set Env
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
working-directory: ./sealdice-core
run: |
echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> $GITHUB_ENV;
echo "PROJECT_VERSION_S=dev-${COMMIT_ID::4}" >> $GITHUB_ENV;
if [ $GOOS = 'windows' ]; then
echo "BINARY_NAME=sealdice-core.exe" >> $GITHUB_ENV;
else
echo "BINARY_NAME=sealdice-core" >> $GITHUB_ENV;
fi
if [ $GOOS = 'windows' ] && [ $GOARCH = '386' ]; then
echo "CC=i686-w64-mingw32-gcc" >> $GITHUB_ENV;
elif [ $GOOS = 'windows' ] && [ $GOARCH = 'amd64' ]; then
echo "CC=x86_64-w64-mingw32-gcc" >> $GITHUB_ENV;
elif [ $GOOS = 'linux' ] && [ $GOARCH = 'amd64' ]; then
echo "CC=gcc" >> $GITHUB_ENV;
elif [ $GOOS = 'linux' ] && [ $GOARCH = 'arm64' ]; then
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV;
fi
- name: Build Binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GO111MODULE: on
# CGO_ENABLED: ${{ matrix.goarch != 'arm64' && 1 || 0 }}
CGO_ENABLED: ${{ matrix.goos == 'windows' && 1 || 0 }}
CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2 -H=windowsgui
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
working-directory: ./sealdice-core
run: go build -o "output/$BINARY_NAME" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION=$CUR_TIME($PROJECT_VERSION_S)" .
- name: Upload Core
uses: actions/upload-artifact@v3
with:
name: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: ./sealdice-core/output
core-darwin-build:
name: Build Core
runs-on: macos-latest
needs: ui-build
strategy:
matrix:
# target: darwin/amd64 darwin/arm64
goos: [ darwin ]
goarch: [ amd64, arm64 ]
fail-fast: true
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: stable
- name: Install dependencies
working-directory: ./sealdice-core
run: |
go mod tidy
go get .
- name: Get UI Resources
uses: actions/download-artifact@v3
with:
name: sealdice-ui
path: ./sealdice-core/static/frontend
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYMMDD
utcOffset: "+08:00"
- name: Set Env
working-directory: ./sealdice-core
run: |
echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> $GITHUB_ENV;
echo "PROJECT_VERSION_S=dev-${COMMIT_ID::4}" >> $GITHUB_ENV;
- name: Build Binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
GO111MODULE: on
CGO_ENABLED: 1
CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
working-directory: ./sealdice-core
run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION=$CUR_TIME($PROJECT_VERSION_S)" .
- name: Upload Core
uses: actions/upload-artifact@v3
with:
name: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: ./sealdice-core/output
core-android-build:
name: Build Core (android, arm64)
runs-on: ubuntu-20.04
needs: ui-build
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Setup Android NDK
id: setup-ndk
uses: nttld/setup-ndk@v1
with:
ndk-version: ${{ env.ANDROID_NDK_VERSION }}
link-to-sdk: true
local-cache: true
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.18
- name: Install dependencies
working-directory: ./sealdice-core
run: |
go mod tidy
go get .
- name: Get UI Resources
uses: actions/download-artifact@v3
with:
name: sealdice-ui
path: ./sealdice-core/static/frontend
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYMMDD
utcOffset: "+08:00"
- name: Set Env
working-directory: ./sealdice-core
run: |
echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> $GITHUB_ENV;
echo "PROJECT_VERSION_S=dev-${COMMIT_ID::4}" >> $GITHUB_ENV;
- name: Build binary
env:
GOOS: android
GOARCH: arm64
CGO_ENABLED: 1
CC: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android33-clang
CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
working-directory: ./sealdice-core
run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION=$CUR_TIME($PROJECT_VERSION_S)" .
- name: Upload Core
uses: actions/upload-artifact@v3
with:
name: sealdice-core_${{ env.PROJECT_VERSION }}_android_arm64
path: ./sealdice-core/output
android-build:
name: Build Android Apk
runs-on: ubuntu-20.04
needs:
- core-android-build
- resources-download
- gocqhttp-android-build
steps:
- name: Code
uses: actions/checkout@v3
with:
submodules: true
- name: Set Env
run: echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> $GITHUB_ENV;
- name: Get Core-android
uses: actions/download-artifact@v3
with:
name: sealdice-core_${{ env.PROJECT_VERSION }}_android_arm64
path: ./sealdice-android/app/src/main/assets/sealdice
- name: Get Documents
uses: actions/download-artifact@v3
with:
name: documents
path: ./sealdice-android/app/src/main/assets/sealdice/data
- name: Get Gocqhttp
uses: actions/download-artifact@v3
with:
name: go-cqhttp_android_arm64
path: ./sealdice-android/app/src/main/assets/sealdice/go-cqhttp/
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
cache: 'gradle'
- name: Set Execution Flag
working-directory: ./sealdice-android
run: chmod +x gradlew
- name: Remove ARCA Config
working-directory: ./sealdice-android/app/src/main/java/com/sealdice/dice
run: |
sed -i '/secrets.Auth.*/d' MyApplication.kt
sed -i '/httpSender {/,/}/d' MyApplication.kt
- name: Set Version
working-directory: ./sealdice-android/app
run: |
sed -i 's/versionName ".*"/versionName "${{ env.PROJECT_VERSION }}"/g' build.gradle
- name: Build Apk
working-directory: ./sealdice-android
run: |
bash ./gradlew assembleDebug --stacktrace
mv ./app/build/outputs/apk/debug/app-debug.apk ./app/build/outputs/apk/debug/sealdice_${{ env.PROJECT_VERSION }}_arm64.apk
- name: Upload Apk
uses: actions/upload-artifact@v1
with:
name: sealdice_${{ env.PROJECT_VERSION }}_android_arm64
path: ./sealdice-android/app/build/outputs/apk/debug/sealdice_${{ env.PROJECT_VERSION }}_arm64.apk
pc-pack:
name: PC Pack
runs-on: ubuntu-latest
needs:
- resources-download
- gocqhttp-build
- core-build
- core-darwin-build
strategy:
matrix:
# target: linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64
goos: [ linux, windows, darwin ]
goarch: [ '386', amd64, arm64 ]
exclude:
- goos: linux
goarch: '386'
- goos: windows
goarch: arm64
- goos: darwin
goarch: '386'
steps:
- name: Set Env
run: echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> $GITHUB_ENV;
- name: Get Documents
uses: actions/download-artifact@v3
with:
name: documents
path: ./data
- name: Get Gocqhttp
uses: actions/download-artifact@v3
with:
name: go-cqhttp_${{ matrix.goos }}_${{ matrix.goarch }}
path: ./go-cqhttp/
- name: Get Core
uses: actions/download-artifact@v3
with:
name: sealdice-core_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: .
- name: Set Execute Attribute
if: matrix.goos != 'windows'
run: chmod +x ./sealdice-core
- name: Upload
uses: actions/upload-artifact@v3
with:
name: sealdice_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: .
preparation:
name: Compressed Files Preparation
runs-on: ubuntu-latest
needs:
- pc-pack
- android-build
strategy:
matrix:
# target: linux/amd64, linux/arm64, windows/386, windows/amd64, darwin/amd64, darwin/arm64, android/arm64
goos: [ linux, windows, darwin ]
goarch: [ '386', amd64, arm64 ]
exclude:
- goos: linux
goarch: '386'
- goos: windows
goarch: arm64
- goos: darwin
goarch: '386'
include:
- goos: android
goarch: arm64
steps:
- name: Set Env
run: echo "PROJECT_VERSION=dev-${COMMIT_ID::7}" >> $GITHUB_ENV;
- name: Get Files
uses: actions/download-artifact@v3
with:
name: sealdice_${{ env.PROJECT_VERSION }}_${{ matrix.goos }}_${{ matrix.goarch }}
path: ./temp/
# 比较粗糙,回头按照release那个方式调整一下所有变量的出处
# 现在会有个问题就是steps执行隔夜可能会出事
- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYYMMDD
utcOffset: "+08:00"
- name: Compress (default)
if: matrix.goos != 'windows' && matrix.goos != 'android'
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
run: |
cd ./temp && find . -type f | cut -c 3- | tar -zcvf ../sealdice_${PROJECT_VERSION}_${CUR_TIME}_${GOOS}_${GOARCH}.tar.gz -T -;
echo "DIST=sealdice_${PROJECT_VERSION}_${CUR_TIME}_${GOOS}_${GOARCH}.tar.gz" >> $GITHUB_ENV;
- name: Compress (windows)
if: matrix.goos == 'windows'
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
run: |
cd ./temp
zip -r ../sealdice_${PROJECT_VERSION}_${CUR_TIME}_${GOOS}_${GOARCH}.zip .
echo "DIST=sealdice_${PROJECT_VERSION}_${CUR_TIME}_${GOOS}_${GOARCH}.zip" >> $GITHUB_ENV;
- name: Skip Compress (android)
if: matrix.goos == 'android'
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
run: |
mv ./temp/sealdice_${PROJECT_VERSION}_${GOARCH}.apk ./sealdice_${PROJECT_VERSION}_${CUR_TIME}_${GOARCH}.apk
echo "DIST=sealdice_${PROJECT_VERSION}_${CUR_TIME}_${GOARCH}.apk" >> $GITHUB_ENV;
- name: Upload
uses: actions/upload-artifact@v3
with:
name: sealdice-prerelease
path: ${{ env.DIST }}
prerelease:
name: Prerelease
runs-on: ubuntu-latest
needs:
- preparation
permissions:
contents: write
steps:
- name: Get Files
uses: actions/download-artifact@v3
with:
name: sealdice-prerelease
path: ./dist/
- name: Update Prerelease
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: pre-release
name: 'Latest Dev Build $$'
prerelease: true
body: '> ⚠️注意️️:这是自动构建的预发布版本,非正式版本!'
files: |
./dist/sealdice*
# 可以使用,但因为文件名都是 sealdice_dev-aea89ca_20230919_linux_arm64.tar.gz
# 这种形式 有一点捉急。就先屏蔽了
# - uses: ryand56/r2-upload-action@latest
# continue-on-error: true
# with:
# r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
# r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
# r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
# r2-bucket: ${{ secrets.R2_BUCKET }}
# source-dir: ./dist
# destination-dir: ./dev
clear-temp-artifact:
name: Clear Temp Artifacts
if: always()
runs-on: ubuntu-latest
needs:
- prerelease
steps:
- uses: geekyeggo/delete-artifact@v2
with:
name: |
documents
go-cqhttp*
sealdice-ui
sealdice-core*
sealdice-prerelease