chore: update vue-router and vuex to specific versions; lock @vue/com… #4
This file contains hidden or 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: GitHub Actions Build and Deploy GitHub Page | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. | |
| with: | |
| persist-credentials: false | |
| - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built. | |
| run: | #注意我这里是使用的yarn管理包,如果你使用的npm,请换成npm的命令:npm install和npm run build | |
| npm install | |
| npm run build | |
| - name: Deploy 🚀 | |
| uses: JamesIves/[email protected] | |
| with: | |
| token: ${{ secrets.ACCESS_TOKEN }} #secrets.ACCESS_TOKEN是项目配置的密钥 | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: dist # The folder the action should deploy. | |
| clean: true # Automatically remove deleted files from the deploy branch |