Skip to content

feat: surface freshness and follow paths #26

feat: surface freshness and follow paths

feat: surface freshness and follow paths #26

Workflow file for this run

name: Deploy Pages
on:
push:
branches:
- main
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Configure Pages
uses: actions/configure-pages@v6
with:
enablement: true
- name: Build site artifact
run: |
rm -rf .dist
mkdir -p .dist
cp -R site/. .dist/
if [ -d output ]; then
mkdir -p .dist/output
cp -R output/. .dist/output/
fi
- name: Archive Pages artifact
run: |
tar \
--dereference --hard-dereference \
--directory .dist \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
--exclude=".[^/]*" \
.
- name: Upload Pages artifact
uses: actions/upload-artifact@v7
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: 1
if-no-files-found: error
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5