-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (51 loc) · 2.56 KB
/
deploy-dev.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Deploy develop branch to Deno
on:
push:
branches: develop-fixed-dco
pull_request:
branches: develop-fixed-dco
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Create .env file
run: |
echo "PUBLIC_MODE=DEV" > .env
echo "PUBLIC_BASE_URL=https://devapi.credebl.id" >> .env
echo "PUBLIC_SHOW_NAME_AS_LOGO=true" >> .env
echo "PUBLIC_PLATFORM_NAME=CREDEBL" >> .env
echo "PUBLIC_PLATFORM_LOGO=/images/CREDEBL_ICON.png" >> .env
echo "PUBLIC_POWERED_BY=Blockster Labs Pvt. Ltd" >> .env
echo "PUBLIC_PLATFORM_DOCS_URL=https://docs.credebl.id/docs" >> .env
echo "PUBLIC_PLATFORM_GIT=https://github.com/credebl" >> .env
echo "PUBLIC_PLATFORM_TWITTER_URL=https://twitter.com/i/flow/login?redirect_after_login=%2Fcredebl" >> .env
echo "PUBLIC_PLATFROM_DISCORD_SUPPORT=https://discord.gg/w4hnQT7NJG" >> .env
echo "PUBLIC_ALLOW_DOMAIN=${{ secrets.DEV_PUBLIC_ALLOW_DOMAIN }}" >> .env
echo "PUBLIC_POLYGON_MAINNET_URL=https://polygon-rpc.com/" >> .env
echo "PUBLIC_POLYGON_TESTNET_URL=https://rpc-amoy.polygon.technology" >> .env
echo "PUBLIC_ECOSYSTEM_FRONT_END_URL=https://dev-ecosystem.credebl.id" >> .env
echo "PUBLIC_ECOSYSTEM_BASE_URL=https://devecosystem-api.credebl.id" >> .env
echo "PUBLIC_PLATFORM_DISCORD_URL=https://discord.gg/w4hnQT7NJG" >> .env
echo "PUBLIC_REDIRECTION_TARGET_URL=https://social-share.credebl.id" >> .env
echo "PUBLIC_CRYPTO_PRIVATE_KEY=${{ secrets.DEV_PUBLIC_CRYPTO_PRIVATE_KEY }}" >> .env
echo "PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID=${{ secrets.DEV_PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_ID }}" >> .env
echo "PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET=${{ secrets.DEV_PUBLIC_KEYCLOAK_MANAGEMENT_CLIENT_SECRET }}" >> .env
echo "PUBLIC_REDIRECT_FROM_URL=https://dev.credebl.id" >> .env
- name: Build step
run: npm install && npm run build # 📝 Update the build command(s)
- name: Upload to Deno Deploy
uses: denoland/deployctl@v1
with:
project: "credebl-dev-ui" # Project name in Deno Deploy
entrypoint: "server/entry.mjs" # 📝 Update the entrypoint
root: "dist"