From e0f2c8607e0745f23931dea42e74cb502b73fb37 Mon Sep 17 00:00:00 2001 From: YamaD Date: Mon, 21 Oct 2024 17:34:33 +0900 Subject: [PATCH] pages --- .github/workflows/gh-pages.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/gh-pages.yml diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 0000000..d8aa277 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,32 @@ +name: GitHub Pages + +on: + push: + branches: [master] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/configure-pages@v4 + - uses: oven-sh/setup-bun@v1 + - run: bun i + - run: bun run build + - uses: actions/upload-pages-artifact@v3 + with: + path: dist + + deploy: + permissions: + id-token: write + pages: write + needs: build + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deploy.outputs.page_url }} + steps: + - id: deploy + uses: actions/deploy-pages@v4