mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-12 03:06:54 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
972 B
YAML
43 lines
972 B
YAML
# This workflow publishes new documentation to https://chartjs.org/docs/master after every commit
|
|
name: Deploy docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
correct_repository:
|
|
permissions:
|
|
contents: none
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: fail on fork
|
|
if: github.repository_owner != 'chartjs'
|
|
run: exit 1
|
|
|
|
build:
|
|
needs: correct_repository
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14.x'
|
|
cache: npm
|
|
- name: Package & Deploy Docs
|
|
run: |
|
|
npm ci
|
|
npm run build
|
|
./scripts/docs-config.sh "master"
|
|
npm run docs
|
|
npm pack
|
|
./scripts/deploy-docs.sh "master"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_AUTH_TOKEN }}
|
|
GH_AUTH_EMAIL: ${{ secrets.GH_AUTH_EMAIL }}
|