From 6275bcb64ee3e7ac8d1635c0fb80a4e745ffb8da Mon Sep 17 00:00:00 2001 From: George Gastaldi Date: Wed, 27 Mar 2024 11:59:06 -0300 Subject: [PATCH] Support preview from forked repositories 15 --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e37b209825..943baa5f1e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,9 @@ on: pull_request: types: [ opened, synchronize, reopened ] +env: + SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} + defaults: run: shell: bash @@ -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: