chore(deps): update all non-major dependencies (#43) #40
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: Build | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2.4.1 | |
- name: Install node | |
uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Run Build | |
run: pnpm run build | |
- name: echo cname | |
run: echo 'tornado.elonehoo.xyz' > dist/CNAME | |
- name: Deploy to GitHub Pages | |
uses: crazy-max/ghaction-github-pages@v4 | |
with: | |
target_branch: gh-pages | |
build_dir: dist | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |