Skip to content

Commit

Permalink
test workflow run teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
scottyhq committed Jun 21, 2024
1 parent 53b8ec4 commit 89c1338
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/buildonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: PR Build

on:
pull_request:
# when using teardown: 'true', add default event types + closed event type
types: [opened, synchronize, reopened, closed]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/deployonly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ jobs:
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }}

steps:
# Download built HTML from PR Build workflow
- uses: actions/download-artifact@v4
continue-on-error: true
with:
github-token: ${{ github.token }}
run-id: ${{ github.event.workflow_run.id }}
Expand All @@ -34,6 +36,7 @@ jobs:
build: echo 'Uploading html/ folder contents to Surge.sh...'
dist: html # NOTE: matchupload_artifact name: html
failOnError: true
teardown: true

- name: Format preview url
id: format_url
Expand Down

0 comments on commit 89c1338

Please sign in to comment.