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