Skip to content

Commit 787fcf2

Browse files
committed
fix actions
1 parent 9919a53 commit 787fcf2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/buildAndPublishPackage.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ jobs:
6868
6969
https://central.sonatype.com/api/v1/publisher/upload?publishingType=AUTOMATIC&name=${{ env.TAG_PREFIX }}-${{ steps.version.outputs.new_version }}
7070
- name: Push tag
71+
if: ${{ !inputs.pages-only }}
7172
id: tag_version
7273
uses: mathieudutour/[email protected]
7374
with:
7475
github_token: ${{ secrets.GITHUB_TOKEN }}
7576
custom_tag: ${{ steps.version.outputs.new_version }}
7677
tag_prefix: ${{ env.TAG_PREFIX }}
7778
- name: Create GitHub Release
78-
if: ${{ inputs.version-bump != 'keep' }}
79+
if: ${{ !inputs.pages-only && inputs.version-bump != 'keep' }}
7980
uses: actions/create-release@v1
8081
env:
8182
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -85,7 +86,7 @@ jobs:
8586
draft: false
8687
prerelease: false
8788
- name: Move version tag
88-
if: ${{ inputs.version-bump == 'keep' }}
89+
if: ${{ !inputs.pages-only && inputs.version-bump == 'keep' }}
8990
uses: richardsimko/update-tag@v1
9091
with:
9192
tag_name: ${{ env.TAG_PREFIX }}${{ steps.version.outputs.new_version }}

0 commit comments

Comments
 (0)