Skip to content

Commit

Permalink
[BLD] deploy preview of docs in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Jun 20, 2024
1 parent 0635dec commit 4f9a3ad
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,35 @@ jobs:
outside-docs:
- '!docs/**'
- '!.github/**'
docs:
- 'docs/**'
deploy-docs-preview:
name: Deploy preview of docs
needs: paths-filter
#if: needs.paths-filter.outputs.docs == 'true'
runs-on: ubuntu-latest
environment:
name: Preview
url: ${{ steps.deploy.outputs.url }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
- name: Install vercel
run: npm install -g vercel
- name: Deploy
id: deploy
run: echo "url=$(vercel deploy --token ${{ secrets.VERCEL_TOKEN }})" >> $GITHUB_OUTPUT
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DOCS_PROJECT_ID }}


python-tests:
name: Python tests
Expand Down

0 comments on commit 4f9a3ad

Please sign in to comment.