Skip to content

Commit c41d3ab

Browse files
committed
Create release on GH after deploy has happened
1 parent e9c28ca commit c41d3ab

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/robot.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,17 @@ jobs:
3434
distribution: zulu
3535
cache: maven
3636
- run: ./mvnw --no-transfer-progress -P exe -B -U -T1C verify
37+
38+
- name: Set SSH key
39+
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master') && matrix.java == '17'
40+
uses: webfactory/[email protected]
41+
with:
42+
ssh-private-key: ${{ secrets.SSH_KEY }}
43+
- name: Add known host key
44+
run: ssh-keyscan mvn.javacard.pro >> ~/.ssh/known_hosts
45+
- name: Deploy package
46+
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master') && matrix.java == '17'
47+
run: ./mvnw --no-transfer-progress -B deploy
3748
- name: Release
3849
if: startsWith(github.ref, 'refs/tags/v') && matrix.java == '17'
3950
id: create_release
@@ -45,12 +56,3 @@ jobs:
4556
fail_on_unmatched_files: true
4657
body: Release ${{ github.ref_name }}
4758
prerelease: true # manually promoted
48-
- name: Set SSH key
49-
uses: webfactory/[email protected]
50-
with:
51-
ssh-private-key: ${{ secrets.SSH_KEY }}
52-
- name: Add known host key
53-
run: ssh-keyscan mvn.javacard.pro >> ~/.ssh/known_hosts
54-
- name: Deploy package
55-
if: (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master') && matrix.java == '17'
56-
run: ./mvnw --no-transfer-progress -B deploy

0 commit comments

Comments
 (0)