Skip to content

Commit

Permalink
[docs-beta] Update GH Action
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramNavid committed Aug 22, 2024
1 parent b10f04b commit a2150ab
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/build-docs-revamp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ name: Deploy Docs Revamp
on:
pull_request:
paths:
- docs/docs-beta
- .github/workflows/build-docs-revamp.yml
- docs/docs-beta/**
- examples/docs_beta_snippets/**
push:
branches:
- docs/revamp
- master
- docs-prod
paths:
- docs/docs-beta
- .github/workflows/build-docs-revamp.yml
- docs/docs-beta/**
- examples/docs_beta_snippets/**

concurrency:
group: ${{ github.workflow}}-${{github.ref}}
Expand All @@ -27,7 +30,7 @@ jobs:
with:
node-version: 18

- name: Run Linting
- name: Lint Docs
run: |
cd docs/docs-beta
yarn install
Expand All @@ -45,12 +48,12 @@ jobs:

- name: Publish to Vercel Production
uses: amondnet/vercel-action@v25
if: github.event_name == 'push' && github.ref == 'refs/heads/docs/revamp'
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
vercel-args: "--prod"
github-token: ${{ secrets.GITHUB_TOKEN }}
scope: ${{ secrets.VERCEL_ORG_ID }}
alias-domains: dagster-docs-beta.dagster.dagster-docs.io
alias-domains: dagster-docs-next.dagster-docs.io

0 comments on commit a2150ab

Please sign in to comment.