Skip to content

Commit c686e4c

Browse files
authored
chore: Add deploy workflow for docs site (#15894)
* chore: Add deploy workflow for docs site * Fix workflow issues * Fix workflow file
1 parent 38ae956 commit c686e4c

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/docs-deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: 'Docs Deploy'
2+
3+
on:
4+
release:
5+
types: ['published']
6+
7+
jobs:
8+
deploy:
9+
name: 'Deploy'
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: '16.x'
17+
- working-directory: docs
18+
run: |
19+
npm install
20+
npm run build
21+
npx netlify deploy --dir=_site --message='Docs deploy ${{ github.event.release.tag_name }}'
22+
env:
23+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
24+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
25+
NETLIFY_DEPLOY_TO_PROD: true

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"imagemin-cli": "^7.0.0",
3131
"markdown-it": "^12.2.0",
3232
"markdown-it-anchor": "^8.1.2",
33+
"netlify-cli": "^10.3.1",
3334
"node-sass": "^6.0.1",
3435
"npm-run-all": "^4.1.5",
3536
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)