Skip to content

Commit

Permalink
test different config passing method, set vercel.json
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaiblaga89 committed Apr 9, 2024
1 parent e41da49 commit 1670d5a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/next.yml
Expand Up @@ -28,20 +28,15 @@ jobs:
- run: rm -rf .vercel
- name: Pull Vercel Environment Information
run: vercel pull --yes --git-branch=release/1.0 --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
- name: test
- name: Build Project Artifacts
run: BASE_URL=https://docs-next.renative.org vercel build
- name: Deploy Project Artifacts to Vercel
run: |
ls
ls .vercel
cat .vercel/project.json
# - name: Build Project Artifacts
# run: BASE_URL=https://docs-next.renative.org vercel build
# - name: Deploy Project Artifacts to Vercel
# run: |
# url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})"
# vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_ORG_ID }} set "$url" docs-next.renative.org
# - name: Update Algolia index
# uses: addnab/docker-run-action@v3
# with:
# image: algolia/docsearch-scraper
# options: --env-file=algolia.env
# run: pipenv run python -m src.index
url="$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})"
vercel alias --token=${{ secrets.VERCEL_TOKEN }} --scope=${{ secrets.VERCEL_ORG_ID }} set "$url" docs-next.renative.org
- name: Update Algolia index
uses: addnab/docker-run-action@v3
with:
image: algolia/docsearch-scraper
options: --env-file=algolia.env
run: pipenv run python -m src.index
2 changes: 1 addition & 1 deletion algolia.env
@@ -1,5 +1,5 @@
APPLICATION_ID=${ALGOLIA_APPLICATION_ID}
API_KEY=${ALGOLIA_API_KEY}
CONFIG=$SCRAPER_CONFIG



3 changes: 3 additions & 0 deletions vercel.json
@@ -0,0 +1,3 @@
{
"cleanUrls": true
}

0 comments on commit 1670d5a

Please sign in to comment.