From 3fd5911097f70c9870e89d009f0381a676b88c33 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Thu, 27 Nov 2025 17:20:09 +0800 Subject: [PATCH] Add GitHub Actions workflow for Deno Deploy Introduces a workflow to deploy the 'functions' branch to Deno Deploy using denoland actions. The workflow checks out the branch, sets up Deno, verifies the installation, and deploys the project. --- .github/workflows/functions-dn.yml | 37 ++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/functions-dn.yml diff --git a/.github/workflows/functions-dn.yml b/.github/workflows/functions-dn.yml new file mode 100644 index 0000000..7748832 --- /dev/null +++ b/.github/workflows/functions-dn.yml @@ -0,0 +1,37 @@ +name: Deploy to Deno Deploy + +on: + push: + branches: + - functions + workflow_dispatch: + +permissions: + id-token: write + contents: read + +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Checkout functions branch + uses: actions/checkout@v6 + with: + ref: functions + + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.x + + - name: Verify Deno installation + run: deno --version + + - name: Deploy to Deno Deploy + uses: denoland/deployctl@v1 + with: + project: xget + entrypoint: deno.js + root: .