Merge pull request #33 from swan-io/update-boxed #73
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
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
name: Deploy to GitHub Pages | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies and build | |
run: | | |
yarn install --pure-lockfile | |
yarn prepack | |
yarn --cwd website install --pure-lockfile | |
yarn --cwd website build | |
- name: Deploy | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: website/dist | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |