add docs
Some checks failed
Check Latest Release / deploy (push) Failing after 57s
Deploy from Main / deploy (push) Successful in 1m17s

This commit is contained in:
zramsay 2025-11-28 20:46:28 +00:00
parent dd8a57a424
commit ef103744f0

View File

@ -0,0 +1,52 @@
name: Deploy from Main
on:
push:
branches: '*'
schedule:
- cron: '0 0 * * 0' # Weekly: Every Sunday at midnight UTC
workflow_dispatch:
env:
TARGET_REPO: zramsay/zenith-docs
CERC_REGISTRY_USER_KEY: ${{ secrets.CICD_LACONIC_USER_KEY }}
CERC_REGISTRY_BOND_ID: ${{ secrets.CICD_LACONIC_BOND_ID }}
CERC_REGISTRY_RPC_ENDPOINT: "http://143.198.37.25:26657"
CERC_REGISTRY_GQL_ENDPOINT: "http://143.198.37.25:9473/api"
CERC_REGISTRY_CHAIN_ID: "laconic-mainnet"
CERC_REGISTRY_DEPLOYMENT_HOSTNAME: zenith-docs
APP_NAME: "zenith-docs"
DEPLOYER_LRN: "lrn://mito-systems/deployers/webapp-deployer-api.pwa.laconic.audubon.app"
AUTHORITY: "mito-systems"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: "Clone project repository"
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Deploy from main branch
run: |
# Get latest commit from main branch
commit_info=$(curl -s https://git.vdb.to/api/v1/repos/${{ env.TARGET_REPO }}/commits/docs-mvp)
commit_hash=$(echo $commit_info | jq -r .sha)
commit_date=$(echo $commit_info | jq -r .commit.committer.date)
echo "Latest commit: $commit_hash"
echo "Committed at: $commit_date"
echo "Proceeding with deployment"
# Setup dependencies
sudo apt -y update && sudo apt -y install jq
corepack enable
npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
npm install -g @cerc-io/laconic-registry-cli
# Run deployment
./deploy-gitea.sh ${{ env.TARGET_REPO }} docs-mvp