From 53ef896255a775c2d6940fc8b83176d36b221139 Mon Sep 17 00:00:00 2001 From: Chris Watterston Date: Thu, 8 Aug 2024 16:56:48 +0100 Subject: [PATCH] Update deploy.yaml Trying 'bitovi/github-actions-storybook-to-github-pages' again --- .github/workflows/deploy.yaml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 58dca56..91942cd 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,30 +1,18 @@ -name: Build and Publish Storybook to GitHub Pages - on: push: branches: - - "main" + - "main" # change to the branch you wish to deploy from + +permissions: + contents: read + pages: write + id-token: write jobs: - build-deploy: + deploy: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '18' - - - name: Install dependencies - run: npm install - - - name: Build Storybook - run: npm run build-storybook - - - name: Deploy - uses: peaceiris/actions-gh-pages@v4 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./public + - id: build-publish + uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 + with: + path: build # change to your build folder