ci: update node #108
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 Site | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
# - feature/vite-ssg | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build | |
run: | | |
yarn | |
yarn build && yarn generate | |
- name: Deploy | |
env: | |
ACTION_DEPLOY_KEY: ${{ secrets.ACTION_DEPLOY_KEY }} | |
run: bash ./scripts/deploy.sh |