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.
This commit is contained in:
1 parent
b273a501b4
commit
3fd5911097
1 file changed
+37
@@ -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: .
|
||||
Reference in new issue
Block a user