Skip to content

Update README.md

Update README.md #28

Workflow file for this run

---
name: preview
permissions:
contents: write
pull-requests: write
concurrency: preview-${{ github.ref }}
on:
pull_request_target:
types:
- opened
- reopened
- synchronize
- closed
env:
CONTAINER_RUNTIME: docker
RUN_CMD: >-
QUARTZ_BUILD_OPTS='-o /repo/public' make -f /repo/Makefile public
jobs:
preview:
runs-on: ubuntu-latest
steps:
- name: Checkout forked PR code
if: github.event.action != 'closed'
uses: actions/checkout@v3
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Checkout base branch (PR is closed)
if: github.event.action == 'closed'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.base.ref }}
fetch-depth: 0
- name: Build site
if: github.event.action != 'closed'
run: make run
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: public
- name: Update preview comment with note about being patient
if: github.event.action != 'closed'
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-preview
append: true
message: |
> [!IMPORTANT]
> The link above will not work until the Pages deployment is complete. You can find this under [Actions -> pages-build-deployment](https://github.com/andyettanotherorg/shanemcd.github.io/actions/workflows/pages/pages-build-deployment).