Skip to content

Commit

Permalink
kkk
Browse files Browse the repository at this point in the history
  • Loading branch information
chengcyber committed May 31, 2024
1 parent e41ffbe commit 656fcf0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/website-preview-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
with:
node-version: 18
- name: Set environment variable
run: echo "BASE_URL=/sparo/preview-${{ github.head_ref }}" >> $GITHUB_ENV
run: echo "BASE_URL=/pr/${{ github.event.number }}/sparo/" >> $GITHUB_ENV
- name: Rush Install(Website)
run: node common/scripts/install-run-rush.js install --to website
- name: Rush build(Website)
Expand All @@ -44,9 +44,9 @@ jobs:
with:
github_token: ${{ secrets.BOT_ACCESS_TOKEN }}
publish_dir: ./apps/website/build
publish_branch: preview-${{ github.head_ref }}
- name: Comment on the pull request with preview URL
if: github.event_name == 'pull_request'
uses: peter-evans/commit-comment@v2
with:
body: 'Preview URL: https://tiktok.github.io/sparo/preview-${{ github.head_ref }}/'
destination_dir: pr/${{ github.event.number }}/sparo
# - name: Comment on the pull request with preview URL
# if: github.event_name == 'pull_request'
# uses: peter-evans/commit-comment@v2
# with:
# body: 'Preview URL: https://tiktok.github.io/sparo/preview-${{ github.head_ref }}/'

0 comments on commit 656fcf0

Please sign in to comment.