-
Notifications
You must be signed in to change notification settings - Fork 65
62 lines (52 loc) · 1.64 KB
/
Copy pathdeno.yml
File metadata and controls
62 lines (52 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Deploy to Deno Deploy
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deno-deploy:
runs-on: ubuntu-latest
name: "Deploy to Deno Deploy"
permissions:
contents: read
defaults:
run:
working-directory: platforms/deno
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: 24
- name: Check Required Secrets
run: |
REQUIRED=(DENO_DEPLOY_TOKEN DENO_PROJECT DENO_ORG)
for var in "${REQUIRED[@]}"; do
if [ -z "${!var}" ]; then
echo "❌ Error: $var is missing."
exit 1
fi
done
env:
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
DENO_PROJECT: ${{ secrets.DENO_PROJECT }}
DENO_ORG: ${{ secrets.DENO_ORG }}
- name: Inject Commit Hash & Platform
run: node scripts/inject_vars.js --platform=deno
- name: Update Deno Configuration
run: node scripts/update_deno.js
env:
DENO_PROJECT: ${{ secrets.DENO_PROJECT }}
DENO_ORG: ${{ secrets.DENO_ORG }}
- name: Setup Deno
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- name: Deploy to Deno Deploy
run: deno deploy --prod --org ${{ secrets.DENO_ORG }} --app ${{ secrets.DENO_PROJECT }}
env:
DENO_DEPLOY_TOKEN: ${{ secrets.DENO_DEPLOY_TOKEN }}
- name: Success Notification
run: echo "🚀 NodeAuth deployed successfully to Deno Deploy!"