Variables: Register variable macro (#452) #16
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-dev-portal-prod.yml' | |
- 'docusaurus/**' | |
jobs: | |
deploy: | |
name: Deploy docs to Developer Portal Bucket | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'yarn' | |
- name: Install dependencies | |
uses: ./.github/actions/yarn-nm-install | |
#mac: sed -i '' 's/title: Set up Scenes/title: Set up Scenes\nslug:\ \//g' ./docusaurus/docs/getting-started.md | |
#linux: sed -i 's/title: Set up Scenes/title: Set up Scenes\nslug:\ \//g' ./docusaurus/docs/getting-started.md | |
- name: Make docs the homepage of this subsite | |
run: | | |
rm -f ./docusaurus/website/src/pages/index.tsx | |
sed -i 's/title: Set up Scenes/title: Set up Scenes\nslug:\ \//g' ./docusaurus/docs/getting-started.md | |
- name: Build documentation website | |
env: | |
GTAG_CONTAINER_ID: ${{ secrets.GTAG_CONTAINER_ID }} | |
run: yarn docs:build --config docusaurus.config.devportal.prod.js | |
- id: 'auth' | |
uses: 'google-github-actions/auth@v1' | |
with: | |
credentials_json: ${{ secrets.GCP_SA_KEY }} | |
- name: Deploy to Developer Portal Bucket | |
uses: google-github-actions/upload-cloud-storage@v1 | |
with: | |
path: './docusaurus/website/build/' | |
destination: 'grafana-developer-portal/scenes' | |
parent: false |