From b4e37435aeab461e4c5559f6c2f2a0afab01c20e Mon Sep 17 00:00:00 2001 From: "deno-deploy[bot]" <75045203+deno-deploy[bot]@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:12:09 +0000 Subject: [PATCH] [Deno Deploy] Add .github/workflows/deploy.yml --- .github/workflows/deploy.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 07260f2..f16b181 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,23 +1,34 @@ name: Deploy - -on: push +on: + push: + branches: main + pull_request: + branches: main jobs: deploy: + name: Deploy runs-on: ubuntu-latest permissions: - id-token: write - contents: read + id-token: write # Needed for auth with Deno Deploy + contents: read # Needed to clone the repository steps: - - uses: actions/checkout@v4 + - name: Clone repository + uses: actions/checkout@v3 - - uses: denoland/setup-deno@v1 + - name: Install Deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.x - - run: deno task build + - name: Build step + run: "deno task build" - - uses: denoland/deployctl@v1 + - name: Upload to Deno Deploy + uses: denoland/deployctl@v1 with: - project: durov - entrypoint: main.ts + project: "durov" + entrypoint: "" + root: ""