mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
30 lines
676 B
YAML
30 lines
676 B
YAML
|
name: publish_docs
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- master
|
||
|
paths:
|
||
|
- 'docs/sources/**'
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
|
||
|
runs-on: ubuntu-latest
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v1
|
||
|
- name: publish-to-git
|
||
|
uses: ./.github/actions/gha-publish-to-git
|
||
|
id: publish
|
||
|
with:
|
||
|
repository: grafana/website
|
||
|
branch: docs-grafana
|
||
|
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 }}"
|