fix(infra): rename dist folder #8
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: Publish to GitHub Pages CI/CD | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
permissions: | |
contents: 'read' | |
id-token: 'write' | |
pages: 'write' | |
actions: 'write' | |
checks: 'write' | |
deployments: 'write' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.x" | |
- name: Install dependencies | |
run: yarn install --prefer-offline | |
- name: Build application | |
run: yarn build | |
# - name: Setup Pages | |
# uses: actions/configure-pages@v3 | |
# At a minimum this job should upload artifacts using actions/upload-artifact | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: build | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |