ci: build and deploy site outside of Netlify
This commit is contained in:
parent
afd3d26da0
commit
39f0d3f839
|
@ -183,10 +183,18 @@ jobs:
|
|||
needs: github_release
|
||||
steps:
|
||||
- name: Setup | Checkout
|
||||
uses: actions/checkout@master
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup | Install dependencies
|
||||
run: cd docs && npm install
|
||||
|
||||
- name: Build | Build docs site
|
||||
run: npm run build
|
||||
|
||||
- name: Publish
|
||||
uses: netlify/actions/build@master
|
||||
uses: netlify/actions/cli@master
|
||||
with:
|
||||
args: deploy --prod --dir=.vuepress/dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,7 +6,7 @@
|
|||
"devDependencies": {
|
||||
"@vuepress/plugin-google-analytics": "^1.8.2",
|
||||
"vuepress": "^1.8.2",
|
||||
"vuepress-theme-default-prefers-color-scheme": "^2.0.0",
|
||||
"vuepress-plugin-sitemap": "^2.3.1"
|
||||
"vuepress-plugin-sitemap": "^2.3.1",
|
||||
"vuepress-theme-default-prefers-color-scheme": "^2.0.0"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue