Publish to the directory the site is served from
Build, test, deploy / site (push) Successful in 6m43s

The deploy job's directory under /srv/www defaulted to the repository's
name. This repository is pplus-web and the site is served from
/srv/www/pplus, so the first job that passed here published to
/srv/www/pplus-web and the live site stayed as it was. The default is
pplus; SITE_SLUG still overrides it.
This commit is contained in:
alexm committed 2026-11-13 06:26:50 -05:00
1 parent 3ebf2e2203
commit eb77cf6902
3 files changed
+6 -3

No files matched your search

+4 -2
View File
@@ -13,7 +13,7 @@
# a host that serves /srv/www, so it is the droplet's.
#
# Repository -> Settings -> Actions -> Variables (all optional):
# SITE_SLUG the directory under /srv/www (defaults to the repository name)
# SITE_SLUG the directory under /srv/www (defaults to pplus, the directory docs/Caddyfile serves)
# SITE_URL e.g. https://pplus.scient.ing, turns on the smoke test
name: Build, test, deploy
on:
@@ -92,7 +92,9 @@ jobs:
- name: Publish to /srv/www
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
env:
SLUG: ${{ vars.SITE_SLUG || github.event.repository.name }}
# not the repository's name: the site is served from /srv/www/pplus, and a job that published to
# /srv/www/pplus-web succeeded while the live site stayed as it was
SLUG: ${{ vars.SITE_SLUG || 'pplus' }}
GITHUB_SHA: ${{ github.sha }}
run: scripts/deploy.sh "$SLUG"