Skip to content

Commit

Permalink
ci(deploy-redesign): deploy preview instance of redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
danielleroux committed Feb 25, 2025
1 parent 5bd7bda commit 2aa0a14
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/deploy-redesign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy Preview Redesign

on:
push:
branches:
- docs/redesign-v2

concurrency: preview-redesign-${{ github.ref }}

jobs:
deploy-redesign:
needs: changes
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: ./.github/workflows/actions/turbo

- name: Build
run: pnpm build --cache-dir=.turbo --filter documentation-redesign
env:
FIGMA_API_TOKEN: ${{ secrets.FIGMA_API_TOKEN }}
CSC: ${{ secrets.READ_CSC_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish
id: publish
uses: netlify/actions/cli@master
with:
args: deploy --message pr-preview-${{ github.event.pull_request.number }} --filter documentation --alias pr-preview-${{ github.event.pull_request.number }}
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}

0 comments on commit 2aa0a14

Please sign in to comment.