Skip to content

Commit 9686b73

Browse files
Update preview-and-release.yml
1 parent 039173e commit 9686b73

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/preview-and-release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ env:
2323

2424
jobs:
2525
maven_Preview:
26+
if: ${{ github.ref == 'refs/heads/dev' }}
2627
environment:
2728
name: maven_central_snapshot
2829
runs-on: ubuntu-latest
@@ -45,13 +46,14 @@ jobs:
4546
shell: pwsh
4647
env:
4748
ENCODED_VALUE: ${{ secrets.SECRING_GPG }}
48-
OUPUT_PATH: '.\secring.gpg'
49+
OUTPUT_PATH: '.\secring.gpg'
4950
- name: Grant execute permission for gradlew
5051
run: chmod +x gradlew
5152
- name: Publish
5253
run: ./gradlew $PREVIEW_TASK
5354

5455
maven_Release:
56+
if: ${{ github.ref == 'refs/heads/dev' }}
5557
environment:
5658
name: maven_central_release
5759
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)