feat: add og|twitter/:image #23
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| - '.github/workflows/docs.yml' | |
| workflow_dispatch: | |
| # Allow the workflow to publish to GitHub Pages. | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # One in-flight deploy at a time; let a running deploy finish. | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Configure Pages | |
| id: pages | |
| uses: actions/configure-pages@v6 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 10.28.2 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - run: pnpm install --frozen-lockfile | |
| - name: Build docs | |
| env: | |
| # base_path/base_url adapt to project-site vs custom-domain automatically. | |
| # DOCS_BASE: ${{ steps.pages.outputs.base_path }} | |
| DOCS_SITE_URL: ${{ steps.pages.outputs.base_url }} | |
| GA_MEASUREMENT_ID: ${{ secrets.GA_MEASUREMENT_ID }} | |
| run: pnpm --filter @arkyc/docs build | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: docs/.vitepress/dist | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |