Image update and final changes #94
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .github/workflows/preview.yml | |
name: Deploy PR previews | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
jobs: | |
deploy-preview: | |
concurrency: | |
group: preview-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- 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: 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: Deploy preview | |
uses: rossjrw/pr-preview-action@v1.4.7 | |
with: | |
source-dir: ./build |