Skip to content

ci: copy index.html to 404.html #52

ci: copy index.html to 404.html

ci: copy index.html to 404.html #52

Workflow file for this run

name: Deploy PR previews
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
permissions: write-all
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Checkout Obsidian Pool Notes
uses: actions/checkout@v4
with:
repository: wodeni/nimo-obsidian-notes-pool
token: ${{ secrets.GH_PAT_OBSIDIAN_POOL }}
path: ./pool-notes/
- name: Log directory structure
run: |
ls -al
ls -al pool-notes/
- name: Install and Build
run: |
yarn
yarn build -- --base /pr-preview/pr-${{ github.event.pull_request.number }}/
- name: Copy index.html to 404.html for routing
run: |
cp dist/index.html dist/404.html
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./dist/