mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
That directory is no longer used in published docs and causes this workflow to fail when changes only affect the packages directory. Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
31 lines
943 B
YAML
31 lines
943 B
YAML
name: "publish-technical-documentation-next"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
paths:
|
|
- "docs/sources/**"
|
|
workflow_dispatch:
|
|
jobs:
|
|
sync:
|
|
if: "github.repository == 'grafana/grafana'"
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- name: "Checkout Grafana repo"
|
|
uses: "actions/checkout@v3"
|
|
|
|
- name: "Clone website-sync Action"
|
|
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: "Publish to website repository (next)"
|
|
uses: "./.github/actions/website-sync"
|
|
id: "publish-next"
|
|
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"
|