Skip to content

Merge release/2.3.0 into main branch (#1081) #235

Merge release/2.3.0 into main branch (#1081)

Merge release/2.3.0 into main branch (#1081) #235

name: Deploy to github pages
on:
workflow_dispatch:
push:
branches:
- main
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
gh-pages-deploy:
name: Deploying to gh-pages
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'yarn'
- name: Configure npm
run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ &&
npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build-storybook
- name: Upload
uses: actions/[email protected]
with:
path: 'storybook-static'
- name: Deploy
uses: actions/deploy-pages@v1
with:
token: ${{ github.token }}