改造为路由跳转方式 #5
Workflow file for this run
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 and deploy | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Install Node.js, NPM | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Check out branch | |
uses: actions/checkout@v2 | |
with: | |
ref: master | |
- name: Install and Build | |
run: | | |
npm ci | |
npm run build | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: dist | |
path: dist | |
deploy: | |
concurrency: ci-${{ github.ref }} | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Download Artifacts | |
uses: actions/download-artifact@v1 | |
with: | |
name: dist | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: 'dist' |