|
@@ -39,11 +39,10 @@ jobs:
|
|
|
npm install
|
|
|
|
|
|
build-and-deploy:
|
|
|
- runs-on: ubuntu-latest
|
|
|
- needs: [ensure-toolchain]
|
|
|
-
|
|
|
permissions:
|
|
|
contents: write
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ needs: [ensure-toolchain]
|
|
|
steps:
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
@@ -69,6 +68,8 @@ jobs:
|
|
|
|
|
|
- name: Deploy
|
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
|
+ if: github.ref == 'refs/heads/master'
|
|
|
with:
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
publish_dir: ./.vuepress/dist
|
|
|
+
|