Skip to content

docs: add Context7 configuration for gh-pages indexing #1509

docs: add Context7 configuration for gh-pages indexing

docs: add Context7 configuration for gh-pages indexing #1509

Workflow file for this run

name: Release
on:
push:
branches:
- main
- '*[0-9].*[0-9].x'
- '*[0-9].x.x'
- dev
- alpha
- beta
# workflow_dispatch makes it possible to trigger the run manually
workflow_dispatch:
# Required to get access token for GitHub OIDC to AWS
permissions:
contents: read
id-token: write
jobs:
semantic-release:
name: Run Semantic Release
runs-on: ubuntu-latest
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
last_release_git_tag: ${{ steps.semantic.outputs.last_release_git_tag }}
last_release_version: ${{ steps.semantic.outputs.last_release_version }}
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: ./.github/actions/set-up-node
- run: npm ci
- run: npm run build
- name: Semantic Release
uses: cycjimmy/semantic-release-action@ba330626c4750c19d8299de843f05c7aa5574f62 # v5.0.2
id: semantic # Need an `id` for output variables
with:
semantic_version: 19.0.5
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
@semantic-release/[email protected]
[email protected]
env:
GITHUB_TOKEN: ${{ secrets.CREATE_RELEASE }}
GH_USERNAME: lime-opensource
GH_TOKEN: ${{ secrets.CREATE_RELEASE }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CI: true
- name: Configure AWS and Upload to S3
if: steps.semantic.outputs.new_release_published == 'true'
uses: ./.github/actions/upload-frontend-build-output-to-s3
with:
aws-role: ${{ secrets.AWS_SHARED_LIMECLOUD_WRITE_STATIC_FILES_ROLE }}
frontend-path: ./
package-version: ${{ steps.semantic.outputs.new_release_version }}
docs:
needs: semantic-release
if: needs.semantic-release.outputs.new_release_published == 'true'
permissions:
contents: read
pull-requests: write
uses: ./.github/workflows/publish-docs.yml
with:
version: "${{ needs.semantic-release.outputs.new_release_version }}"
forcePush: true
secrets: inherit