Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,22 @@ jobs:
uses: actions/checkout@v4
if: github.event.action != 'closed'

# Mirrors deploy.yml so the preview ships the same install.sh bytes
# served at agentlinux.org/install.sh.
- name: Stage install.sh (mirror deploy.yml)
# Stage the site to a clean subdirectory. source-dir MUST be a
# subfolder, not the repo root — otherwise rsync inside
# JamesIves/github-pages-deploy-action recurses into its own temp
# folder and overflows the path length.
- name: Assemble site bundle
if: github.event.action != 'closed'
run: cp packaging/curl-installer/install.sh install.sh
run: |
mkdir -p _site
# Mirrors deploy.yml install.sh staging so the preview ships the
# same install.sh bytes served at agentlinux.org/install.sh.
cp packaging/curl-installer/install.sh _site/install.sh
cp index.html _site/
cp CNAME _site/
cp sitemap.xml _site/
cp robots.txt _site/
cp -r assets _site/

# rossjrw/pr-preview-action publishes to gh-pages/pr-preview/pr-N/
# on opened/reopened/synchronize, and removes that directory on closed.
Expand All @@ -43,7 +54,7 @@ jobs:
- name: Deploy PR preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./
source-dir: ./_site/
preview-branch: gh-pages
umbrella-dir: pr-preview
action: auto
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<!-- preview-smoke-test: trivial change to exercise pr-preview.yml; safe to revert -->
<!-- Google Analytics 4 — replace G-7CR1MW6RL0 with your Measurement ID from https://analytics.google.com -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7CR1MW6RL0"></script>
<script>
Expand Down
Loading