From 75a4ea94ab909f0b084d1b100abfdfdee1f881c1 Mon Sep 17 00:00:00 2001 From: Chawye Hsu Date: Tue, 26 Nov 2024 15:21:59 +0800 Subject: [PATCH] ci: add deploy workflow Signed-off-by: Chawye Hsu --- .github/workflows/deploy.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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 0000000000..65d2d5271d --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,29 @@ +name: Deno Deploy +on: + push: + branches: api + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + + permissions: + id-token: write # Needed for auth with Deno Deploy + contents: read # Needed to clone the repository + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Upload to Deno Deploy + uses: denoland/deployctl@v1 + with: + project: "dorado-api" + entrypoint: "index.ts" + root: "."