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

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