Skip to content

Commit 95c4bda

Browse files
authored
chore: Fix invalid GHA for publishing to GH pages (#84)
1 parent ac101e1 commit 95c4bda

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/actions/publish-gh-pages/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ runs:
3636
shell: bash
3737
run: helm repo index build --url https://launchdarkly.github.io/ld-relay-helm --merge helm-repo/index.yaml
3838

39-
- name: Move files into publishable directory
39+
- name: Update GH-pages with new artifacts and updated index.yaml
4040
shell: bash
4141
run: mv build/${{ steps.version.outputs.ARTIFACT }} build/index.yaml helm-repo
42+
43+
- name: Move files into publishable directory
44+
shell: bash
4245
run: mv helm-repo/*tgz build/
4346

4447
- name: Publish to GitHub pages

.github/workflows/manual-publish.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ on:
66
description: "Is this a dry run? If so no package will be published."
77
type: boolean
88
required: true
9+
skip_gh_pages:
10+
description: "Skip publishing to GitHub Pages"
11+
type: boolean
12+
required: false
13+
default: false
14+
skip_ghcr:
15+
description: "Skip publishing to GitHub Container Registry (GHCR)"
16+
type: boolean
17+
required: false
18+
default: false
919

1020
jobs:
1121
build-publish:
@@ -24,11 +34,13 @@ jobs:
2434
uses: ./.github/actions/ci
2535

2636
- uses: ./.github/actions/publish-gh-pages
37+
if: ${{ !inputs.skip_gh_pages }}
2738
with:
2839
dry_run: ${{ inputs.dry_run }}
2940
token: ${{ secrets.GITHUB_TOKEN }}
3041

3142
- uses: ./.github/actions/publish-ghcr
43+
if: ${{ !inputs.skip_ghcr }}
3244
with:
3345
dry_run: ${{ inputs.dry_run }}
3446
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)