-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
revert: restore deploy preview behavior (#5536)
* Revert "Fix Prod Storybook deployment (#5535)" This reverts commit 8b96591. * Revert "fix: deploy_preview workflow (#5529)" This reverts commit be42cc6. * Revert "Fixing deploy_preview workflow (#5526)" This reverts commit 62353f2. * Revert "Remove branch from preview_deploy.yml (#5523)" This reverts commit e2075bd. * Revert "Add landing page and upload vrt/aat reports to GitHub Pages (#5499)" This reverts commit 5a6d7bb.
- Loading branch information
Showing
8 changed files
with
33 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,6 @@ jobs: | |
build: | ||
if: ${{ github.event.pull_request.head.repo.full_name == 'primer/react' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -46,3 +45,34 @@ jobs: | |
uses: actions/deploy-pages@v4 | ||
with: | ||
preview: true | ||
|
||
deploy-storybook: | ||
name: Preview Storybook | ||
if: ${{ github.event.pull_request.head.repo.full_name == 'primer/react' }} | ||
needs: deploy-preview | ||
permissions: | ||
deployments: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: chrnorm/[email protected] | ||
name: Create GitHub deployment for storybook | ||
id: storybook | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
environment: storybook-preview-${{ github.event.number }} | ||
environment_url: '${{ needs.deploy-preview.outputs.deployment_url }}/storybook' | ||
- name: Update storybook deployment status (success) | ||
if: success() | ||
uses: chrnorm/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
environment-url: '${{ needs.deploy-preview.outputs.deployment_url }}/storybook' | ||
state: 'success' | ||
deployment-id: ${{ steps.storybook.outputs.deployment_id }} | ||
- name: Update storybook deployment status (failure) | ||
if: failure() | ||
uses: chrnorm/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
state: 'failure' | ||
deployment-id: ${{ steps.storybook.outputs.deployment_id }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.