From edfacaa222716140c9cd37b246e40b401044cb25 Mon Sep 17 00:00:00 2001 From: akasaka Date: Sun, 27 Oct 2024 08:16:23 +0900 Subject: [PATCH] Github why! --- .github/workflows/web.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/web.yml diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml new file mode 100644 index 0000000..bd815a7 --- /dev/null +++ b/.github/workflows/web.yml @@ -0,0 +1,26 @@ +name: Publish web + +# Thanks to github's weird limitations on which branches and/or folders are usable for the pages, +# we need this workaround for `./webroot` to be the actual web root of the project + +on: + push: + branches: ['pub'] + +jobs: + publish: + permissions: + contents: write + runs-on: ubuntu-latest + name: Publish web pages + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: recursive + - name: Publish webroot via GitHub Pages + uses: rayluo/github-pages-overwriter@v1.3 + with: + source-directory: webroot + target-branch: gh-pages \ No newline at end of file