2019-12-04 07:36:50 -06:00
|
|
|
name: publish_docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'docs/sources/**'
|
2020-10-14 10:03:35 -05:00
|
|
|
- 'packages/grafana-*/**'
|
2019-12-04 07:36:50 -06:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-10-14 10:03:35 -05:00
|
|
|
- name: generate-packages-docs
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
id: generate-docs
|
|
|
|
with:
|
|
|
|
node-version: '12'
|
|
|
|
- run: yarn install --pure-lockfile --no-progress
|
|
|
|
- run: ./scripts/ci-reference-docs-build.sh
|
2019-12-04 07:36:50 -06:00
|
|
|
- name: publish-to-git
|
|
|
|
uses: ./.github/actions/gha-publish-to-git
|
|
|
|
id: publish
|
|
|
|
with:
|
|
|
|
repository: grafana/website
|
2020-02-13 08:10:25 -06:00
|
|
|
branch: master
|
2019-12-04 07:36:50 -06:00
|
|
|
host: github.com
|
|
|
|
github_pat: '${{ secrets.GH_BOT_ACCESS_TOKEN }}'
|
|
|
|
source_folder: docs/sources
|
|
|
|
target_folder: content/docs/grafana/latest
|
|
|
|
- shell: bash
|
|
|
|
run: |
|
|
|
|
test -n "${{ steps.publish.outputs.commit_hash }}"
|
|
|
|
test -n "${{ steps.publish.outputs.working_directory }}"
|