mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 11:20:27 -06:00
44cca3e4c1
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.4.1 to 2.5.1. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v2.4.1...v2.5.1) --- updated-dependencies: - dependency-name: actions/setup-node dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
name: publish_docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
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
|
|
- name: generate-packages-docs
|
|
uses: actions/setup-node@v2.5.1
|
|
id: generate-docs
|
|
with:
|
|
node-version: '14'
|
|
- name: Get yarn cache directory path
|
|
id: yarn-cache-dir-path
|
|
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
|
|
- uses: actions/cache@v2.1.7
|
|
with:
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
key: yarn-${{ hashFiles('**/yarn.lock') }}
|
|
restore-keys: |
|
|
yarn-
|
|
- run: yarn install --immutable
|
|
- 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/next
|
|
allow_no_changes: 'true'
|
|
- shell: bash
|
|
run: |
|
|
test -n "${{ steps.publish.outputs.commit_hash }}"
|
|
test -n "${{ steps.publish.outputs.working_directory }}"
|