From d222d5c7df864c37e297aa42f7570b284d1e6e7b Mon Sep 17 00:00:00 2001 From: Erik Guzman Date: Wed, 13 Mar 2024 03:46:07 +0000 Subject: [PATCH] Add new storybook manual release action --- .../workflows/manual-storybook-release.yml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/manual-storybook-release.yml diff --git a/.github/workflows/manual-storybook-release.yml b/.github/workflows/manual-storybook-release.yml new file mode 100644 index 0000000..5911e9a --- /dev/null +++ b/.github/workflows/manual-storybook-release.yml @@ -0,0 +1,44 @@ +name: Publish Storybook GitHub Page + +on: workflow_dispatch + + +jobs: + storybook: + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + + # Deploy to the github-pages environment + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + # Specify runner + deployment step + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20' + registry-url: 'https://registry.npmjs.org' + cache: 'yarn' + - name: yarn install + run: | + yarn install + + - name: Build Storybook + run: | + yarn release-storybook + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: '.out/' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 +