Skip to content

Commit

Permalink
chore: Add deploy workflow for docs site (#15894)
Browse files Browse the repository at this point in the history
* chore: Add deploy workflow for docs site

* Fix workflow issues

* Fix workflow file
  • Loading branch information
nzakas committed May 20, 2022
1 parent 38ae956 commit c686e4c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docs-deploy.yml
@@ -0,0 +1,25 @@
name: 'Docs Deploy'

on:
release:
types: ['published']

jobs:
deploy:
name: 'Deploy'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
- working-directory: docs
run: |
npm install
npm run build
npx netlify deploy --dir=_site --message='Docs deploy ${{ github.event.release.tag_name }}'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_DEPLOY_TO_PROD: true
1 change: 1 addition & 0 deletions docs/package.json
Expand Up @@ -30,6 +30,7 @@
"imagemin-cli": "^7.0.0",
"markdown-it": "^12.2.0",
"markdown-it-anchor": "^8.1.2",
"netlify-cli": "^10.3.1",
"node-sass": "^6.0.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.2",
Expand Down

0 comments on commit c686e4c

Please sign in to comment.