22
22
- name : Build with Maven
23
23
run : |
24
24
mvn -Dfile.encoding=UTF-8 -DskipTests=true install
25
- cp ./dht-server/target/*-with-dependencies.jar ./dht-server-${{ steps.branch-name.outputs.current_branch }}.jar
26
- cp ./dht-peer/target/*-with-dependencies.jar ./dht-peer-${{ steps.branch-name.outputs.current_branch }}.jar
27
- cp ./dht-es/target/*-with-dependencies.jar ./dht-es-${{ steps.branch-name.outputs.current_branch }}.jar
25
+ cp ./dht-server/target/*-with-dependencies.jar ./dht-server-${{ steps.branch-name.outputs.tag }}.jar
26
+ cp ./dht-peer/target/*-with-dependencies.jar ./dht-peer-${{ steps.branch-name.outputs.tag }}.jar
27
+ cp ./dht-es/target/*-with-dependencies.jar ./dht-es-${{ steps.branch-name.outputs.tag }}.jar
28
28
zip -q -r release.zip *.jar
29
29
- name : Create Release
30
30
id : create_release
33
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
34
with :
35
35
tag_name : ${{ github.ref }}
36
- release_name : Release ${{ steps.branch-name.outputs.current_branch }}
36
+ release_name : Release ${{ steps.branch-name.outputs.tag }}
37
37
draft : false
38
38
prerelease : false
39
39
- name : Upload Release Asset
44
44
with :
45
45
upload_url : ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
46
46
asset_path : ./release.zip
47
- asset_name : release-${{ steps.branch-name.outputs.current_branch }}.zip
47
+ asset_name : release-${{ steps.branch-name.outputs.tag }}.zip
48
48
asset_content_type : application/zip
49
49
- name : Set up QEMU
50
50
uses : docker/setup-qemu-action@v2
@@ -61,16 +61,16 @@ jobs:
61
61
with :
62
62
context : dht-server
63
63
push : true
64
- tags : docker.io/zpqsunny/dht-server:latest,docker.io/zpqsunny/dht-server:${{ steps.branch-name.outputs.current_branch }}
64
+ tags : docker.io/zpqsunny/dht-server:latest,docker.io/zpqsunny/dht-server:${{ steps.branch-name.outputs.tag }}
65
65
- name : Build and push dht-peer
66
66
uses : docker/build-push-action@v4
67
67
with :
68
68
context : dht-peer
69
69
push : true
70
- tags : docker.io/zpqsunny/dht-peer:latest,docker.io/zpqsunny/dht-peer:${{ steps.branch-name.outputs.current_branch }}
70
+ tags : docker.io/zpqsunny/dht-peer:latest,docker.io/zpqsunny/dht-peer:${{ steps.branch-name.outputs.tag }}
71
71
- name : Build and push dht-es
72
72
uses : docker/build-push-action@v4
73
73
with :
74
74
context : dht-es
75
75
push : true
76
- tags : docker.io/zpqsunny/dht-es:latest,docker.io/zpqsunny/dht-es:${{ steps.branch-name.outputs.current_branch }}
76
+ tags : docker.io/zpqsunny/dht-es:latest,docker.io/zpqsunny/dht-es:${{ steps.branch-name.outputs.tag }}
0 commit comments