From 6be8c482b21321424c8010b4de7a660bc8a10d10 Mon Sep 17 00:00:00 2001 From: Shotaro Nakamura <79000684+nakasyou@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:13:18 +0900 Subject: [PATCH] Create deploy.yml --- .github/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..6eb4437 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: Deno + +on: + push: + branches: ["main"] + +permissions: + contents: read + pages: write + id-token: write + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + - name: Setup repo + uses: actions/checkout@v4 + - name: Configure GitHub Pages + uses: actions/configure-pages@v5.0.0 + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + + - name: Install Deps + run: bun i + - name: Build + run: bun run build --base=/liveui/ + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4