chore(docs): fix ci (#8135)

# Fixing Fork Previews

This PR tries to fix the upload of the docs preview to vercel which was
not working due to the not available secret.
This commit is contained in:
Florian Forster
2024-06-14 15:50:36 +02:00
committed by GitHub
parent cc00ee89ff
commit 21ffe4f693
2 changed files with 22 additions and 8 deletions

View File

@@ -20,6 +20,13 @@ permissions:
pull-requests: write
jobs:
docs:
uses: ./.github/workflows/docsusaurus.yml
secrets:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
core:
uses: ./.github/workflows/core.yml
with:

View File

@@ -1,15 +1,22 @@
name: Docs
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
pull_request:
push:
branches:
- main
on:
workflow_call:
secrets:
VERCEL_TOKEN:
description: 'Vercel API Token'
required: true
VERCEL_ORG_ID:
description: 'Vercel Org/Team ID'
required: true
VERCEL_PROJECT_ID:
description: 'Vercel Project ID'
required: true
jobs:
Deploy:
runs-on: ubuntu-latest
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3