Skip to content

Commit 5cd6870

Browse files
committed
add cd
1 parent 28e1af5 commit 5cd6870

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/cd.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+

0 commit comments

Comments
 (0)