Merge release/2.3.0 into main branch (#1081) #235
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 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 }} |