-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge new website content into
main
branch
- Loading branch information
Showing
237 changed files
with
2,935 additions
and
14,840 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Deploy to main & run scraper | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
trigger-deploy: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Ping the deployment hook | ||
run: | | ||
response="$(curl -X POST ${{ secrets.DEPLOY_HOOK }})" | ||
timestamp="$(jq -r ".job.createdAt" <<< "$response")" | ||
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT | ||
await-deploy: | ||
needs: trigger-deploy | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- env: | ||
TIMESTAMP: ${{ needs.trigger-deploy.outputs.timestamp }} | ||
TEAM_ID: team_okdUhHpKkohHXyqJWQOuloqC | ||
APP_NAME: website | ||
name: Wait for deployment | ||
run: | | ||
for i in {1..25}; do | ||
sleep 30 | ||
response=$(curl -s -X GET "https://api.vercel.com/v6/deployments?app=$APP_NAME&teamId=$TEAM_ID&since=$TIMESTAMP" -H "Authorization: Bearer ${{ secrets.VERCEL_TOKEN }}") | ||
status=$(echo "$response" | jq -r '.deployments[0] | .state // ""') | ||
if [[ $status == "READY" ]]; then | ||
ready_deployment_url=$(echo "$response" | jq -r '.deployments[0] | .url // ""') | ||
echo "Deployment is ready at $ready_deployment_url" | ||
break | ||
elif [[ $status == "ERROR" || $status == "CANCELED" ]]; then | ||
echo "Deployment failed with status $status" | ||
exit 1 # exit with a failure status code | ||
fi | ||
echo "Deployment is not ready yet, retrying..." | ||
done | ||
scrape-docs: | ||
needs: await-deploy | ||
runs-on: ubuntu-20.04 | ||
name: scrape and push content on Meilisearch instance | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Run docs-scraper | ||
env: | ||
HOST_URL: ${{ secrets.MEILISEARCH_HOST_URL }} | ||
API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} | ||
CONFIG_FILE_PATH: ${{ github.workspace }}/docs-scraper.config.json | ||
run: | | ||
docker run -t --rm \ | ||
-e MEILISEARCH_HOST_URL=$HOST_URL \ | ||
-e MEILISEARCH_API_KEY=$API_KEY \ | ||
-v $CONFIG_FILE_PATH:/docs-scraper/config.json \ | ||
getmeili/docs-scraper:v0.12.8 pipenv run ./docs_scraper config.json |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.