Skip to content
Merged
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
25 changes: 2 additions & 23 deletions .github/workflows/pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,38 +37,17 @@ jobs:

# Nothing to build. The page is index.html, src/ and vendor/, all of it
# loaded by relative path, so it works at the root of
# button-pusher.tintan.do and under /button-pusher/ on GitHub Pages
# alike. Those three and 404.html are copied out as they are, and the
# tools, docs and local server stay out of the site.
# button-pusher.tintan.do. Those three and 404.html are copied out as
# they are, and the tools, docs and local server stay out of the site.
- run: mkdir _site && cp -r index.html 404.html src vendor _site/

# The same _site/ twice: once in the shape deploy-pages wants, once as a
# plain artifact for the Cloudflare job. The first goes with GitHub Pages.
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
with:
path: _site

- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: site
path: _site
if-no-files-found: error
retention-days: 1

# GitHub Pages, kept until button-pusher.tintan.do is verified, then removed.
deploy:
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

# Cloudflare Pages, served at button-pusher.tintan.do. The job has no GitHub
# token permissions at all: it downloads this run's artifact and hands it to
# wrangler, nothing more. A manual run from another branch, or a run in a
Expand Down
Loading