Skip to content

Commit 9919a53

Browse files
committed
add pages-only mode
1 parent 325963d commit 9919a53

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/buildAndPublishPackage.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ on:
99
version-bump:
1010
type: string
1111
required: true
12-
default: 'minor'
12+
default: 'patch'
13+
pages-only:
14+
type: boolean
15+
required: true
16+
default: false
1317
secrets:
1418
SONATYPE_TOKEN:
1519
required: true
@@ -56,6 +60,7 @@ jobs:
5660
- name: Create release bundle
5761
run: './scripts/createReleaseBundle.sc --version=${{ steps.version.outputs.new_version }} --gpg-key=${{ secrets.GPG_SECRET_KEY_ID }}'
5862
- name: Upload bundle to Sonatype
63+
if: ${{ !inputs.pages-only }}
5964
run: |
6065
curl --request POST \
6166
--verbose \

.github/workflows/release.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ on:
1313
- minor
1414
- patch
1515
- keep
16+
pages-only:
17+
type: boolean
18+
description: 'Skip release, generate only Github Pages'
19+
required: true
20+
default: false
21+
1622
# push:
1723
# branches: [main]
1824
# paths:
@@ -24,4 +30,5 @@ jobs:
2430
secrets: inherit
2531
with:
2632
tag-prefix: 'lambda-utils'
27-
version-bump: ${{ inputs.version-bump || 'patch' }}
33+
version-bump: ${{ inputs.version-bump || 'patch' }}
34+
pages-only: ${{ inputs.pages-only }}

0 commit comments

Comments
 (0)