mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
Bumps [actions/setup-node](https://github.com/actions/setup-node) from v1 to v2.1.4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v1...c46424eee26de4078d34105d3de3cc4992202b1e) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
name: publish_docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'docs/sources/**'
|
|
- 'packages/grafana-*/**'
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- run: git clone --single-branch --no-tags --depth 1 -b master https://grafanabot:${{ secrets.GH_BOT_ACCESS_TOKEN }}@github.com/grafana/website-sync ./.github/actions/website-sync
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
- name: generate-packages-docs
|
|
uses: actions/setup-node@v2.1.4
|
|
id: generate-docs
|
|
with:
|
|
node-version: '14'
|
|
- run: yarn install --pure-lockfile --no-progress
|
|
- run: ./scripts/ci-reference-docs-build.sh
|
|
- name: publish-to-git
|
|
uses: ./.github/actions/website-sync
|
|
id: publish
|
|
with:
|
|
repository: grafana/website
|
|
branch: master
|
|
host: github.com
|
|
github_pat: '${{ secrets.GH_BOT_ACCESS_TOKEN }}'
|
|
source_folder: docs/sources
|
|
target_folder: content/docs/grafana/latest
|
|
allow_no_changes: 'true'
|
|
- shell: bash
|
|
run: |
|
|
test -n "${{ steps.publish.outputs.commit_hash }}"
|
|
test -n "${{ steps.publish.outputs.working_directory }}"
|