File tree Expand file tree Collapse file tree 7 files changed +99
-1
lines changed Expand file tree Collapse file tree 7 files changed +99
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+
6
+ jobs :
7
+ publish :
8
+ runs-on : ubuntu-latest
9
+ environment : release
10
+
11
+ permissions :
12
+ contents : write
13
+ packages : write
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set Release Info
19
+
20
+ with :
21
+ template : publish.module-template.yaml.j2
22
+ output_file : publish.module-template.yaml
23
+ env :
24
+ PUBLISH_REPO : https://maven.pkg.github.com/${{ github.repository }}
25
+ PUBLISH_GROUP : net.alphadev
26
+ PUBLISH_VERSION : 1.0.${{github.run_number}}
27
+
28
+ - name : Run Build
29
+ run : ./amper build
30
+
31
+ - name : Run Tests
32
+ run : ./amper test
33
+
34
+ - name : Set up credentials
35
+ run : |
36
+ echo "github.username=$REPO_OWNER" > local.properties
37
+ echo "github.password=$GITHUB_TOKEN" >> local.properties
38
+ env :
39
+ REPO_OWNER : ${{ github.repository_owner }}
40
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
41
+
42
+ - name : Release snapshot
43
+ id : release-snapshot
44
+ uses : actions/create-release@latest
45
+ env :
46
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
47
+ with :
48
+ tag_name : 1.0.${{github.run_number}}
49
+ release_name : 1.0.${{github.run_number}}
50
+ draft : false
51
+ prerelease : false
52
+
53
+ - name : Publish
54
+ run : ./amper publish github
Original file line number Diff line number Diff line change 1
- /build
1
+ /build
2
+ local.properties
3
+
Original file line number Diff line number Diff line change @@ -3,3 +3,10 @@ product: jvm/app
3
3
dependencies :
4
4
- ../lib
5
5
- " com.github.ajalt.clikt:clikt:5.0.3"
6
+
7
+ settings :
8
+ publishing :
9
+ name : opml-tool
10
+
11
+ apply :
12
+ - ../publish.module-template.yaml
Original file line number Diff line number Diff line change @@ -12,3 +12,8 @@ dependencies:
12
12
settings :
13
13
kotlin :
14
14
serialization : enabled
15
+ publishing :
16
+ name : kotlin-opml
17
+
18
+ apply :
19
+ - ../publish.module-template.yaml
Original file line number Diff line number Diff line change
1
+ github.username =
2
+ github.password =
Original file line number Diff line number Diff line change
1
+ repositories :
2
+ - id : github
3
+ url : https://maven.pkg.github.com/janseeger/kotlin-opml
4
+ resolve : false
5
+ publish : true
6
+ credentials :
7
+ file : local.properties
8
+ usernameKey : github.username
9
+ passwordKey : github.password
10
+
11
+ settings :
12
+ publishing :
13
+ group : net.alphadev
14
+ version : 0.0.0
Original file line number Diff line number Diff line change
1
+ repositories:
2
+ - id: github
3
+ url: {{ env['PUBLISH_REPO'] }}
4
+ resolve: false
5
+ publish: true
6
+ credentials:
7
+ file: local.properties
8
+ usernameKey: github.username
9
+ passwordKey: github.password
10
+
11
+ settings:
12
+ publishing:
13
+ group: {{ env['PUBLISH_GROUP'] }}
14
+ version: {{ env['PUBLISH_VERSION'] }}
You can’t perform that action at this time.
0 commit comments