From ee454a8202e29aef259485913f9660f73ce70525 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Fri, 7 Feb 2025 04:42:11 -0500 Subject: [PATCH] Add an empty Pages deployment Our repo is too large to deploy to Pages, which is why we use this repo on an external server. However, GitHub keeps trying, and failing, to publish this repo on every commit. For now, I've just kept this around to preserve the redirects from `matplotlib.github.com`. This change adds a custom workflow that just fills out `CNAME` and publishes that as the "website" on Pages. This avoids both the checkout and the upload of over 10GB that just errors out. --- .github/workflows/pages.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000000..739e7248db6 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,34 @@ +--- +name: Deploy static content to Pages + +on: + push: + branches: ["main"] + workflow_dispatch: + +permissions: + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: false + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Setup Pages + run: | + mkdir pages + echo matplotlib.org > pages/CNAME + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'pages' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4