From cf1e11f56cf39fceff99f8348593899b51bad93a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sat, 12 Oct 2024 13:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=20afc163/surge-preview?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 794821d..7bca554 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -65,3 +65,17 @@ jobs: - uses: yanhao98/composite-actions/setup-node-environment@main - run: npx depcheck || true - run: node .depcheck.js + + surge-preview: + runs-on: ubuntu-latest + permissions: + pull-requests: write # allow surge-preview to create/update PR comments + steps: + - uses: yanhao98/composite-actions/setup-node-environment@main + - uses: afc163/surge-preview@v1 + id: surge_preview_step + with: + dist: dist + build: pnpm run build-only + - name: Get the preview_url + run: echo "url => ${{ steps.surge_preview_step.outputs.preview_url }}"