BETA Stale Feature Docs (#781) #636
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
on: | |
push: | |
branches: | |
- 'main' | |
jobs: | |
wait-for-vercel-deployment: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: read | |
id-token: write | |
env: | |
VERCEL_DEPLOYMENT_URL: "devcycle-docs.vercel.app" | |
steps: | |
- name: Set Secrets | |
uses: DevCycleHQ/aws-secrets-action@main | |
with: | |
secrets_map: '{"VERCEL_TOKEN":"DEVCYCLE_GITHUB_devcycle-docs_VERCEL_TOKEN", "ALGOLIA_APPLICATION_ID":"DEVCYCLE_GITHUB_devcycle-docs_ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY":"DEVCYCLE_GITHUB_devcycle-docs_ALGOLIA_API_KEY"}' | |
aws_account_id: '134377926370' | |
- uses: UnlyEd/[email protected] | |
name: Waits for Vercel deployment to finish | |
id: await-vercel | |
env: | |
VERCEL_TOKEN: ${{ env.VERCEL_TOKEN }} | |
with: | |
deployment-url: ${{ env.VERCEL_DEPLOYMENT_URL }} | |
timeout: 10 # Wait for 10 seconds before failing | |
- name: Displays the deployment name (example on how to read information about the deployment) | |
run: "echo The deployment at ${{ fromJson(steps.await-vercel.outputs.deploymentDetails).url }} is ${{ fromJson(steps.await-vercel.outputs.deploymentDetails).readyState }}" | |
- uses: actions/checkout@v4 | |
- name: Get the content of algolia.json as config | |
id: algolia_config | |
run: echo "::set-output name=config::$(cat algolia.json | jq -r tostring)" | |
- name: Push indices to Algolia | |
uses: signcl/docsearch-scraper-action@master | |
env: | |
APPLICATION_ID: ${{ env.ALGOLIA_APPLICATION_ID }} | |
API_KEY: ${{ env.ALGOLIA_API_KEY }} | |
CONFIG: ${{ steps.algolia_config.outputs.config }} |