From bf9848f04cefd4aa72a99f6c2e156283ae3c9891 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 8 Jun 2025 14:23:13 -0700 Subject: [PATCH] ci: add gh pages deployment --- .github/actions/pages.yml | 23 +++++++++++++++++++++++ index.html => public/index.html | 0 2 files changed, 23 insertions(+) create mode 100644 .github/actions/pages.yml rename index.html => public/index.html (100%) diff --git a/.github/actions/pages.yml b/.github/actions/pages.yml new file mode 100644 index 0000000..d84c733 --- /dev/null +++ b/.github/actions/pages.yml @@ -0,0 +1,23 @@ +name: GitHub Pages + +on: + push: + branches: + - main + pull_request: + +jobs: + deploy: + runs-on: ubuntu-latest + permissions: + contents: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + steps: + - uses: actions/checkout@v4 + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + if: github.ref == 'refs/heads/main' + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./public diff --git a/index.html b/public/index.html similarity index 100% rename from index.html rename to public/index.html