We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b8772d commit a533a0fCopy full SHA for a533a0f
.github/workflows/release.yml
@@ -1,6 +1,6 @@
1
name: Release To Maven Central
2
run-name: Publishing Package Version ${{ github.event.inputs.Version }}
3
-# Run workflow on commits to the `main` branch
+
4
on:
5
workflow_dispatch:
6
inputs:
@@ -16,6 +16,8 @@ jobs:
16
steps:
17
- name: Check out git repository
18
uses: actions/checkout@v2
19
+ with:
20
+ ref: ${{ github.ref_name }}
21
22
- name: Install Java and Maven setup
23
uses: actions/setup-java@v1
@@ -45,7 +47,7 @@ jobs:
45
47
uses: CasperWA/push-protected@v2
46
48
with:
49
token: ${{ secrets.PAT }}
- branch: main
50
+ branch: ${{ github.ref_name }}
51
- name: Delete the intermediate branch
52
if: steps.release.outputs.exit_code == 0
53
run: |
0 commit comments