Hand Pages artifacts to the single trusted deployment workflow [skip ci]

This commit is contained in:
Andras Schmelczer 2026-11-07 14:41:15 +00:00
commit f2c07a435d

View file

@ -58,10 +58,6 @@ jobs:
github.event.pull_request.user.login)) && (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
# Never cancel an in-flight deploy: rsync --delete must finish or the live
# site can be left half-deleted. Newer deploys queue behind this one.
concurrency:
group: 'photos-deploy-${{ github.ref }}'
cancel-in-progress: false
steps:
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
@ -87,28 +83,3 @@ jobs:
path: dist
if-no-files-found: error
retention-days: 1
deploy-pages:
name: Deploy static site artifacts
needs: deploy
if: ${{ contains(fromJSON('["andras","ruby336688","renovate-bot"]'), github.actor) && (!github.event.pull_request || contains(fromJSON('["andras","ruby336688","renovate-bot"]'),
github.event.pull_request.user.login)) && (!(github.actor == 'renovate-bot' || github.event.pull_request.user.login == 'renovate-bot' || startsWith(github.ref,
'refs/heads/renovate/') || startsWith(github.head_ref, 'renovate/'))) && ((true)) }}
runs-on: pages
container:
image: node:22-bookworm@sha256:63538dfe497cc29dfafdda25ada09b46db68a3f4cc205abf1f5d6bf0913f3384
volumes:
- /pages/photos:/pages/photos
concurrency:
group: pages-deploy-photos
cancel-in-progress: false
steps:
- name: Download static site artifact 1
uses: https://github.com/actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a
with:
name: pages-deploy-0
path: dist
- name: Copy build to host pages mount
uses: https://git.schmelczer.dev/andras/ci-actions/deploy-pages@c80f2f0701d7618f1f0b2bb52ebd332ea34b6e28
with:
source: dist
target: photos