Attempt at fixing storybook deploy

This commit is contained in:
garronej 2023-03-17 14:45:51 +01:00
parent 8c61339a7c
commit ce459d95f8

View file

@ -34,20 +34,6 @@ jobs:
name: build name: build
path: build path: build
deploy_storybook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.3
with:
node-version: '16'
- uses: bahmutov/npm-install@v1
- run: yarn build-storybook -o ./build_storybook
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p gh-pages@3.1.0 gh-pages -d ./build_storybook --dest storybook --add -u "github-actions-bot <actions@github.com>"
check_if_version_upgraded: check_if_version_upgraded:
name: Check if version upgrade name: Check if version upgrade
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -87,7 +73,8 @@ jobs:
- run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git - run: git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${{github.repository}}.git
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npx -y -p gh-pages@3.1.0 gh-pages -d build -u "github-actions-bot <actions@github.com>" - run: npx -y -p gh-pages@3.1.0 gh-pages -u "github-actions-bot <actions@github.com>" -d build
- run: npx -y -p gh-pages@3.1.0 gh-pages -u "github-actions-bot <actions@github.com>" -d build_storybook --dest storybook --add
docker: docker:
needs: needs: