[add] data of 辅導癌症患者及家属技巧 (#2) #15
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: Web deployment | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Build-and-Deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: pnpm | |
- name: Install & Build | |
run: | | |
pnpm i --frozen-lockfile | |
pnpm build | |
- name: Deploy to GitHub pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
publish_dir: ./dist | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
force_orphan: true |