Skip to content

Commit

Permalink
Support preview from forked repositories 15
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Mar 27, 2024
1 parent e52cb38 commit 6275bcb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
pull_request:
types: [ opened, synchronize, reopened ]

env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}

defaults:
run:
shell: bash
Expand Down Expand Up @@ -84,8 +87,7 @@ jobs:
- name: Publishing to surge for preview
id: deploy
run: npx surge ./ --domain https://quarkiverse-docs-pr-${{ steps.pr.outputs.id }}-preview.surge.sh --token $SURGE_TOKEN
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}

- name: Update PR status comment on success
uses: actions-cool/maintain-one-comment@v3
with:
Expand Down

0 comments on commit 6275bcb

Please sign in to comment.