Skip to content

Commit

Permalink
[docs-beta] Update GH Action (dagster-io#23841)
Browse files Browse the repository at this point in the history
## Summary & Motivation

Updates the Github Action for Docs Revamp. 

## How I Tested These Changes

## Changelog [New | Bug | Docs]

NOCHANGELOG
  • Loading branch information
PedramNavid authored Aug 23, 2024
1 parent 9c8d3c5 commit 3747660
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 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-beta.dagster-docs.io
5 changes: 3 additions & 2 deletions docs/docs-beta/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ The documentation site is built using [Docusaurus](https://docusaurus.io/), a mo

## Installation

The site uses [yarn](https://yarnpkg.com/) for package management.
The site uses [yarn](https://yarnpkg.com/) for package management.

To install dependencies:
To install dependencies:

```
yarn install
Expand Down Expand Up @@ -85,6 +85,7 @@ This will run `pyright` on all new/changed files relative to the master branch.
```
make quick_pyright
```

---

## Build
Expand Down

0 comments on commit 3747660

Please sign in to comment.