-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 1.1 KB
/
main.yaml
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
name: Build & Release
on: [push]
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
permissions:
id-token: "write"
contents: "read"
env:
DENO_AUTH_TOKENS: ${{ secrets.GH_CUSTOM_TOKEN }}@raw.githubusercontent.com
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "npm"
- run: npm install
env:
GITHUB_NPM_TOKEN: ${{ secrets.GH_NPM_PACKAGE_READ_TOKEN }}
- name: Pre-cache Deno
run: |
./node_modules/deno-bin/bin/deno install --name cached-zuplo-server -f https://raw.githubusercontent.com/zuplo/runtime-deno/main/local-dev-impl/main.ts
- run: npm run build
env:
GIT_SHA: ${{ github.sha }}
API_VERSION: ${{ github.run_id }}
- run: npm run lint
- uses: zuplo/deploy-zup-action@main
if: ${{ github.ref == 'refs/heads/main' }}
with:
project: zuplo-echo-api
account_id: 4f59a390b9f139a4a82b757edd3c71dd
api_token: ${{ secrets.ZUPLO_CF_API_TOKEN }}