Skip to content

fix: add github pages deploy to build ci workflow #68

fix: add github pages deploy to build ci workflow

fix: add github pages deploy to build ci workflow #68

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- name: Install
run: yarn install
- name: Build
run: yarn build
deploy-page:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
defaults:
run:
working-directory: gh-pages
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v3
- name: Install + Build
run: docker-compose up page-build
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: gh-pages/out
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2