Skip to content

Deploy Reference Documentation #96

Deploy Reference Documentation

Deploy Reference Documentation #96

name: Deploy Reference Documentation
on:
workflow_dispatch:
inputs:
version:
description: 'SDK Version'
required: true
type: string
permissions:
id-token: write
jobs:
deploy-reference-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@v4
with:
ref: main
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "eg-oss-ci"
- name: Checkout gh-pages branch
run: |
git fetch origin mdwairi/refactor-docs-versioning
git checkout mdwairi/refactor-docs-versioning
- name: List directories in gh-pages (debug step)
run: |
echo "Directories in gh-pages branch:"
ls -d */
- name: Move latest release to the older directory
run: |

Check failure on line 40 in .github/workflows/generate-docs-site.yml

View workflow run for this annotation

GitHub Actions / Deploy Reference Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/generate-docs-site.yml (Line: 40, Col: 14): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION .github/workflows/generate-docs-site.yml (Line: 46, Col: 14): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION
VERSION=$(jq -r '.version' version.json)
mkdir older/${{ VERSION }}
rsync -av --exclude='older' --exclude='.git' --exclude='README.md' ./ older/${{ VERSION }}
- name: List older directory content (debug)
run: |
cd older/${{ VERSION }}
ls