mirror of
https://github.com/primer/css.git
synced 2024-12-26 15:43:59 +03:00
c78dadcdf6
Bumps [chrnorm/deployment-action](https://github.com/chrnorm/deployment-action) from 2.0.4 to 2.0.5. - [Release notes](https://github.com/chrnorm/deployment-action/releases) - [Commits](https://github.com/chrnorm/deployment-action/compare/v2.0.4...v2.0.5) --- updated-dependencies: - dependency-name: chrnorm/deployment-action dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
1.6 KiB
YAML
59 lines
1.6 KiB
YAML
name: Deploy
|
|
on:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: write
|
|
pages: write
|
|
id-token: write
|
|
deployments: write
|
|
issues: write
|
|
statuses: write
|
|
checks: write
|
|
|
|
jobs:
|
|
deploy:
|
|
if: ${{ github.repository == 'primer/css' }}
|
|
uses: primer/.github/.github/workflows/deploy_preview.yml@main
|
|
name: Deploy preview
|
|
secrets:
|
|
gh_token: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
node_version: 14
|
|
install: yarn && cd docs && yarn && cd ..
|
|
build: yarn build:docs:preview
|
|
output_dir: docs/public
|
|
|
|
deploy-storybook:
|
|
if: ${{ github.repository == 'primer/css' }}
|
|
name: Preview Storybook
|
|
runs-on: ubuntu-latest
|
|
needs: deploy
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: chrnorm/deployment-action@v2.0.5
|
|
name: Create GitHub deployment for storybook
|
|
id: storybook
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
environment: Storybook Preview
|
|
environment_url: '${{ needs.deploy.outputs.deployment_url }}/storybook'
|
|
|
|
- name: Update storybook deployment status (success)
|
|
if: success()
|
|
uses: chrnorm/deployment-status@v2.0.1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
environment-url: '${{ needs.deploy.outputs.deployment_url }}/storybook'
|
|
state: 'success'
|
|
deployment-id: ${{ steps.storybook.outputs.deployment_id }}
|
|
|
|
- name: Update storybook deployment status (failure)
|
|
if: failure()
|
|
uses: chrnorm/deployment-status@v2.0.1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
state: 'failure'
|
|
deployment-id: ${{ steps.storybook.outputs.deployment_id }}
|