From 82ccd1b8c20e4f4aac41c80d81f33809d9ede709 Mon Sep 17 00:00:00 2001 From: Kacper Wyczawski <97523625+kacperwyczawski@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:18:58 +0000 Subject: [PATCH] build: create deploy.yml --- .github/workflows/deploy.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 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..0985579 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,41 @@ +name: Deploy to Pages + +on: + push: + branches: ["main"] + workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: "pages" + cancel-in-progress: false +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Bun + uses: oven-sh/setup-bun@v1 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Install dependencies + run: bun install + - name: Build + run: bun run build + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: /dist + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4