Skip to content

trigger-gh-pages-deploy #658

trigger-gh-pages-deploy

trigger-gh-pages-deploy #658

name: Build and Deploy Specs to GH Pages
on:
workflow_run:
workflows:
- Publish Docs
branches:
- main
types:
- completed
repository_dispatch:
types: [trigger-gh-pages-deploy]
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'repository_dispatch' }}
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: ./.github/actions/setup-pnpm
- name: Add aa-sdk docs to fern
uses: ./.github/actions/insert-wallets-tab
- name: Run build script
id: build
run: pnpm generate && pnpm generate:metadata
- name: Upload static files as artifact
id: deploy-artifact
uses: actions/upload-pages-artifact@v3
with:
path: fern/api-specs/
deploy:
runs-on: ubuntu-latest
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4