Compare commits

..

2 Commits

Author SHA1 Message Date
Adw8
f8ec0e3473 Add workflow to deploy snowball frontend 2024-11-06 10:41:17 +05:30
Adw8
d4ed5bba8b Update config for deploying frontend 2024-11-06 10:13:32 +05:30
2 changed files with 40 additions and 4 deletions

View File

@ -0,0 +1,36 @@
name: Deploy Snowball frontend
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up environment
run: |
# Create a config file with necessary endpoints and placeholders for secrets
cat > packages/deployer/config.yml <<EOF
services:
registry:
rpcEndpoint: https://laconicd-sapo.laconic.com
gqlEndpoint: https://laconicd-sapo.laconic.com/api
userKey: ${{ secrets.REGISTRY_USER_KEY }}
bondId: ${{ secrets.REGISTRY_BOND_ID }}
chainId: laconic-testnet-2
gasPrice: 0.001alnt
EOF
- name: Run Deploy Script
env:
REGISTRY_BOND_ID: ${{ secrets.REGISTRY_BOND_ID }}
DEPLOYER_LRN: ${{ secrets.DEPLOYER_LRN }}
AUTHORITY: ${{ secrets.AUTHORITY }}
run: |
./packages/deployer/deploy-frontend.sh

View File

@ -4,5 +4,5 @@ services:
gqlEndpoint: https://laconicd-sapo.laconic.com/api gqlEndpoint: https://laconicd-sapo.laconic.com/api
userKey: userKey:
bondId: bondId:
chainId: laconic_9000-2 chainId: laconic-testnet-2
gasPrice: 1alnt gasPrice: 0.001alnt