Skip to content

Commit

Permalink
update preview ci version
Browse files Browse the repository at this point in the history
  • Loading branch information
0o-de-lally committed Aug 1, 2024
1 parent 0f02b43 commit c9563d6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,22 @@ jobs:
- uses: oven-sh/setup-bun@v2
# this has to match docusaurus's baseURL in docusaurus.config.js
- run: echo "GH_ACTION_DOCUSAURUS_BASE_URL=pr-preview/pr-${{ github.event.number }}" >> "$GITHUB_ENV"

# - name: Always clean
# uses: rossjrw/pr-preview-action@v1
# with:
# source-dir: ./build
# action: remove

- name: Install and Build
if: github.event.action != 'closed' # You might want to skip the build if the PR has been closed
run: |
bun install --frozen-lockfile
bun run build
- name: Always clean
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build
action: remove
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
uses: rossjrw/pr-preview-action@v1.4.7
with:
source-dir: ./build

0 comments on commit c9563d6

Please sign in to comment.