Skip to content

Added state sync docs #926

Added state sync docs

Added state sync docs #926

Workflow file for this run

name: Build and deploy static websites
on:
workflow_dispatch:
push:
branches:
- master
paths:
- packages/**
pull_request:
env:
GIT_LFS_SKIP_SMUDGE: 1
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
permissions:
id-token: write
packages: write
jobs:
docker:
runs-on: [ubuntu-latest]
needs: [checks]
env:
REGISTRY_URL: ghcr.io
strategy:
fail-fast: false
matrix:
docker:
- name: Build Specs image
image: specs
path: specs
- name: Build Docs image
image: docs
path: docs
- name: Build Docs image
image: community
path: community
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY_URL }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: ${{ matrix.docker.name }}
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
push: ${{ github.ref == 'refs/heads/master' }}
tags: ${{ env.REGISTRY_URL }}/anoma/namada-docs:${{ matrix.docker.image }}-main
labels: ${{ steps.meta.outputs.labels }}
build-args: |
"TARGET=${{ matrix.docker.path }}"
cloudfront:
runs-on: [ubuntu-latest]
needs: [checks]
if: ${{ github.ref == 'refs/heads/master' }}
env:
NEXT_TELEMETRY_DISABLED: 1
strategy:
fail-fast: false
matrix:
make:
- name: Specs image
path: specs
bucket: namada-specs-frontend-prod
- name: Docs image
path: docs
bucket: namada-docs-frontend-prod
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Configure AWS
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE }}
retry-max-attempts: 3
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build ${{ matrix.make.name }}
run: npm run build:${{ matrix.make.path }}
- name: Deploy ${{ matrix.make.name }}
run: aws s3 sync packages/${{ matrix.make.path }}/out s3://${{ matrix.make.bucket }} --delete
checks:
runs-on: [ubuntu-latest]
strategy:
fail-fast: false
matrix:
make:
- name: docs
path: docs
# - name: specs
# path: specs
- name: community
path: community
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --offline packages/${{ matrix.make.path }}/pages/