docs: update min grafana version (#1136) #249
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Developer Portal PROD Bucket | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/deploy-to-developer-portal-prod.yml' | |
- 'docusaurus/**' | |
jobs: | |
deploy: | |
name: Deploy docs to Developer Portal Bucket | |
runs-on: ubuntu-latest | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
NX_BRANCH: ${{ github.event.number || github.ref_name }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
#mac: sed -i '' 's/title: Get started/title: Get started\nslug:\ \//g' ./docusaurus/docs/get-started/get-started.mdx | |
#mac: grep -rl "](/docs/" docusaurus/docs | xargs sed -i '' 's/](\/docs\//](\//g' | |
#linux: sed -i 's/title: Get started/title: Get started\nslug:\ \//g' ./docusaurus/docs/get-started/get-started.mdx | |
#linux: grep -rl "](/docs/" docusaurus/docs | xargs sed -i 's/](\/docs\//](\//g' | |
# - name: Make docs the homepage of this subsite | |
# run: | | |
# rm -f ./docusaurus/website/src/pages/index.tsx | |
# sed -i 's/title: Get started/title: Get started\nslug:\ \//g' ./docusaurus/docs/get-started/get-started.mdx | |
# grep -rl "](/docs/" docusaurus/docs | xargs sed -i 's/](\/docs\//](\//g' | |
- name: Build documentation website | |
run: npm run docs:build | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v2' | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Deploy to Developer Portal Bucket | |
uses: google-github-actions/upload-cloud-storage@v2 | |
with: | |
path: './docusaurus/website/build/' | |
destination: 'grafana-developer-portal/plugin-tools' | |
parent: false |