Skip to content

Commit

Permalink
Add dispatch workflow to update docs (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lblackstone authored Oct 18, 2023
1 parent bb82792 commit bb49f42
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/publish-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,25 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }}
ESC_VERSION: ${{ github.ref_name }}

jobs:
lint:
uses: ./.github/workflows/stage-lint.yml

test:
uses: ./.github/workflows/stage-test.yml
with:
enable-coverage: true
secrets: inherit

publish:
needs: [test, lint]
uses: ./.github/workflows/stage-publish.yml
with:
goreleaser-args: -p 10 -f .goreleaser.yml --rm-dist --skip-validate --timeout 60m0s --release-notes=CHANGELOG_PENDING.md
secrets: inherit

s3-blobs:
needs: [publish]
name: s3 blobs
Expand All @@ -31,7 +35,7 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
ref: ${ESC_VERSION}
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand All @@ -45,9 +49,20 @@ jobs:
- name: Download release artifacts
run: |
mkdir -p artifacts
gh release download "${{ github.ref_name }}" --dir ./artifacts --pattern 'esc-*'
gh release download "${ESC_VERSION}" --dir ./artifacts --pattern 'esc-*'
find artifacts
- name: Publish Blobs
run: |
aws s3 sync artifacts s3://get.pulumi.com/esc/releases --acl public-read
dispatch:
name: ${{ matrix.job.name }}
if: inputs.run-dispatch-commands && !contains(inputs.version, '-')
runs-on: ubuntu-latest
needs: [publish]
strategy:
fail-fast: false
matrix:
job:
- name: Dispatch docs workflow
run-command: pulumictl create cli-docs-build "${ESC_VERSION}" --event-type "esc-cli"

0 comments on commit bb49f42

Please sign in to comment.