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