Skip to content

Commit 9ff52d0

Browse files
author
Ruslan Farkhutdinov
committed
Storybook Deployment: Remove environment for build; update ubuntu version; add meta info to deploy job
1 parent bc6b2de commit 9ff52d0

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/pr-storybook-build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ env:
2525
jobs:
2626
build:
2727
name: Build preview artifacts
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-slim
2929
timeout-minutes: 20
30-
environment: github-pages
3130

3231
steps:
3332
- name: Decide action (deploy/remove/none)

.github/workflows/pr-storybook-deploy.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
prepare:
1919
name: Read build meta
2020
if: github.event.workflow_run.conclusion == 'success'
21-
runs-on: ubuntu-latest
21+
runs-on: ubuntu-slim
2222
timeout-minutes: 5
2323
outputs:
2424
action: ${{ steps.meta.outputs.action }}
@@ -50,12 +50,14 @@ jobs:
5050
echo "action=$ACTION" >> "$GITHUB_OUTPUT"
5151
5252
deploy:
53-
name: Deploy/remove preview
53+
name: "Deploy/remove preview — PR #${{ needs.prepare.outputs.pr_number }}"
5454
needs: prepare
5555
if: needs.prepare.outputs.action != 'none'
5656
runs-on: ubuntu-latest
5757
timeout-minutes: 10
58-
environment: github-pages
58+
environment:
59+
name: github-pages
60+
url: https://github.com/${{ github.repository }}/pull/${{ needs.prepare.outputs.pr_number }}
5961

6062
concurrency:
6163
group: preview-deploy-${{ needs.prepare.outputs.pr_number }}

0 commit comments

Comments
 (0)