From 7a95e5fd31e3e3de1779cb70b1cd328b51a5a534 Mon Sep 17 00:00:00 2001 From: bhavanakarwade Date: Fri, 20 Dec 2024 12:23:27 +0530 Subject: [PATCH] refactor studio pipeline --- .github/workflows/deploy.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7997eecf..70dbfc14 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,6 +31,30 @@ jobs: - name: Install step run: "npm install" + - 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/en/intro/what-is-credebl/" >> .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 run build"