File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI
2+
3+ on :
4+ # 输入version
5+ workflow_dispatch :
6+ inputs :
7+ version :
8+ description : ' version number'
9+ required : true
10+ default : ' 0.1.0'
11+ jobs :
12+ build_and_push :
13+ runs-on : ubuntu-latest
14+ permissions :
15+ contents : read
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+ - uses : coursier/cache-action@v6
21+ - uses : coursier/setup-action@v1
22+ with :
23+ jvm : temurin:21
24+ apps : sbt bloop sbtn
25+
26+ - name : Run SBT stage
27+ run : sbt clean stage
28+
29+ - name : package
30+ run : jpackage --name https-proxy --input target/universal/stage/lib --main-jar https-proxy.https-proxy-${{ inputs.version }}.jar --main-class Main --type app-image --win-console
31+ - name : release
32+ # 上传 https-proxy 目录
33+ uses : actions/upload-artifact@v4
34+ with :
35+ name : https-proxy-${{ inputs.version }}
36+ path : https-proxy
37+
38+
You can’t perform that action at this time.
0 commit comments