We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c8caac commit 645c163Copy full SHA for 645c163
1 file changed
.github/workflows/main.yml
@@ -1,22 +1,29 @@
1
name: Build and Deploy
2
-on: [push]
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+
7
jobs:
8
build-and-deploy:
9
runs-on: ubuntu-latest
10
steps:
11
- name: Checkout
- uses: actions/checkout@main
12
+ uses: actions/checkout@v4
13
14
- name: Setup Node.js
15
uses: actions/setup-node@v4
16
with:
- node-version: "16"
17
+ node-version: "18"
18
cache: "yarn"
19
- - name: Vuepress deploy
- uses: jenkey2011/vuepress-deploy@1.0.1
- env:
- ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
20
- BUILD_SCRIPT: yarn && yarn build
21
- TARGET_BRANCH: gh-pages
22
- BUILD_DIR: build/
+ - name: Install and Build
+ run: |
+ yarn install
23
+ yarn build
24
25
+ - name: Deploy
26
+ uses: peaceiris/actions-gh-pages@v3
27
+ with:
28
+ github_token: ${{ secrets.ACCESS_TOKEN }}
29
+ publish_dir: ./build
0 commit comments