Chart.js/.github/workflows/deploy-docs.yml
Evert Timberg ff354cc5b8
Remove release branch workflow (#7827)
* GitHub actions uses locked install for CI
* Add initial GitHub action to publish to NPM
* Detect the NPM tag (latest vs next) depending on the git tag
* Deploy docs from releases & master commits
* Remove Travis CI
* Update repo badge to use actions status
* Remove Travis env vars and update docs-config to take a parameter
* Update publish script regex to match other scripts
* Deploy docs action only runs in one spot
2020-10-13 17:12:19 -04:00

29 lines
638 B
YAML

# This workflow publishes new documentation to https://chartjs.org/docs/master after every commit
name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
- name: Package & Deploy Docs
run: |
npm ci
npm run build
./scripts/docs-config.sh "master"
npm run docs
npm run typedoc
npm pack
./scripts/deploy-docs.sh "master"
env:
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
GH_AUTH_EMAIL: ${{ secrets.GH_AUTH_EMAIL }}