Skip to content

Commit 39f0d3f

Browse files
committed
ci: build and deploy site outside of Netlify
1 parent afd3d26 commit 39f0d3f

File tree

3 files changed

+12766
-15
lines changed

3 files changed

+12766
-15
lines changed

.github/workflows/deploy.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,18 @@ jobs:
183183
needs: github_release
184184
steps:
185185
- name: Setup | Checkout
186-
uses: actions/checkout@master
186+
uses: actions/checkout@v2
187+
188+
- name: Setup | Install dependencies
189+
run: cd docs && npm install
190+
191+
- name: Build | Build docs site
192+
run: npm run build
187193

188194
- name: Publish
189-
uses: netlify/actions/build@master
195+
uses: netlify/actions/cli@master
196+
with:
197+
args: deploy --prod --dir=.vuepress/dist
190198
env:
191-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
192199
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
200+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 commit comments

Comments
 (0)