Merge pull request #784 from Financial-Times/trial-as-non-trial-hack #254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
gh-pages-deploy: | |
name: Deploying Storybook | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- run: git config --global url."https://${{ secrets.NEXT_USER_PAT }}@github.com/".insteadOf ssh://git@github.com/ | |
- run: npm install -g npm@9.6.7 | |
- run: npm install | |
- run: npm run build-storybook | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs | |
commit_message: '[ci skip] ${GITHUB_SHA}' |