|
1 |
| - name: Deploy to github pages |
2 |
| - on: |
3 |
| - workflow_dispatch: |
4 |
| - push: |
5 |
| - branches: |
6 |
| - - main |
7 |
| - |
8 |
| - # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
9 |
| - permissions: |
10 |
| - contents: read |
11 |
| - pages: write |
12 |
| - id-token: write |
13 |
| - |
14 |
| - jobs: |
15 |
| - gh-pages-deploy: |
16 |
| - name: Deploying to gh-pages |
17 |
| - runs-on: ubuntu-latest |
18 |
| - steps: |
19 |
| - - name: Checkout branch |
20 |
| - uses: actions/checkout@v3 |
21 |
| - |
22 |
| - - name: Setup node |
23 |
| - uses: actions/setup-node@v3 |
24 |
| - with: |
25 |
| - node-version-file: '.node-version' |
26 |
| - cache: 'yarn' |
27 |
| - |
28 |
| - - name: Configure npm |
29 |
| - run: npm config set "@fortawesome:registry" https://npm.fontawesome.com/ && |
30 |
| - npm config set "//npm.fontawesome.com/:_authToken" ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }} |
31 |
| - |
32 |
| - - name: Install dependencies |
33 |
| - run: yarn install |
34 |
| - |
35 |
| - - name: Build |
36 |
| - run: yarn build-storybook |
37 |
| - |
38 |
| - - name: Upload |
39 |
| - uses: actions/upload-pages-artifact@v3 |
40 |
| - with: |
41 |
| - path: 'storybook-static' |
42 |
| - |
43 |
| - - name: Deploy |
44 |
| - uses: actions/deploy-pages@v4 |
45 |
| - with: |
46 |
| - token: ${{ github.token }} |
| 1 | +name: Deploy to github pages |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - main |
| 7 | + |
| 8 | +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
| 9 | +permissions: |
| 10 | + contents: read |
| 11 | + pages: write |
| 12 | + id-token: write |
| 13 | + |
| 14 | +jobs: |
| 15 | + gh-pages-deploy: |
| 16 | + name: Deploying to gh-pages |
| 17 | + runs-on: ubuntu-latest |
| 18 | + steps: |
| 19 | + - name: Checkout branch |
| 20 | + uses: actions/checkout@v3 |
| 21 | + |
| 22 | + - name: Setup node |
| 23 | + uses: actions/setup-node@v3 |
| 24 | + with: |
| 25 | + node-version-file: ".node-version" |
| 26 | + cache: "yarn" |
| 27 | + |
| 28 | + - name: Setup Yarn |
| 29 | + uses: volta-cli/action@v4 |
| 30 | + |
| 31 | + - name: Setup env |
| 32 | + run: echo "FONTAWESOME_NPM_AUTH_TOKEN=${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}" > .env |
| 33 | + |
| 34 | + - name: Install dependencies |
| 35 | + run: yarn install |
| 36 | + |
| 37 | + - name: Build |
| 38 | + run: yarn build-storybook |
| 39 | + |
| 40 | + - name: Upload |
| 41 | + uses: actions/upload-pages-artifact@v3 |
| 42 | + with: |
| 43 | + path: "storybook-static" |
| 44 | + |
| 45 | + - name: Deploy |
| 46 | + uses: actions/deploy-pages@v4 |
| 47 | + with: |
| 48 | + token: ${{ github.token }} |
0 commit comments