From ffe9462739ba6cdec7328addb35f4cec45b8d501 Mon Sep 17 00:00:00 2001 From: lifehackerhansol Date: Tue, 23 Apr 2024 23:52:34 -0700 Subject: [PATCH] Migrate fully to GitHub Actions for Pages deployment Legacy deploy environments (including simply having something in gh-pages!) is deprecated. GitHub really wants us to use their deploy-pages system for this, so switch to it. --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ .nojekyll | 0 2 files changed, 31 insertions(+) create mode 100644 .github/workflows/publish.yml delete mode 100644 .nojekyll diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..3111b2323 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Deploy site + +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + deploy: + environment: + name: github-pages + url: $ + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Configure GitHub Pages + uses: actions/configure-pages@v5 + + - name: Setup deployment + run: | + mkdir _site + cp -r docs translations index.html _site + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.nojekyll b/.nojekyll deleted file mode 100644 index e69de29bb..000000000