feat: add Partners & Sponsors page #798
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 agentos.sh to GitHub Pages | |
| on: | |
| push: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| schedule: | |
| # Daily at 06:00 UTC: refresh the build-time-fetched /stats.json so star | |
| # counts and npm download numbers don't go stale between code deploys. | |
| # Cheap (one extra GitHub Pages build per day) and means visitors don't | |
| # see week-old stats just because nothing else shipped. | |
| - cron: '0 6 * * *' | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Enable corepack (use pnpm from packageManager) | |
| run: corepack enable | |
| - name: Install dependencies | |
| run: pnpm install --no-frozen-lockfile | |
| - name: Build and export | |
| env: | |
| NEXT_PUBLIC_GA_MEASUREMENT_ID: ${{ secrets.NEXT_PUBLIC_GA_MEASUREMENT_ID }} | |
| NEXT_PUBLIC_CLARITY_PROJECT_ID: ${{ secrets.NEXT_PUBLIC_CLARITY_PROJECT_ID }} | |
| NEXT_PUBLIC_GISCUS_REPO: ${{ secrets.NEXT_PUBLIC_GISCUS_REPO }} | |
| NEXT_PUBLIC_GISCUS_REPO_ID: ${{ secrets.NEXT_PUBLIC_GISCUS_REPO_ID }} | |
| NEXT_PUBLIC_GISCUS_CATEGORY: ${{ secrets.NEXT_PUBLIC_GISCUS_CATEGORY }} | |
| NEXT_PUBLIC_GISCUS_CATEGORY_ID: ${{ secrets.NEXT_PUBLIC_GISCUS_CATEGORY_ID }} | |
| # GITHUB_TOKEN is auto-injected by Actions; raises the unauthenticated | |
| # GitHub API rate limit from 60/hr (per IP) to 5000/hr (per token) so | |
| # scripts/fetch-public-stats.mjs reliably populates public/stats.json. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: pnpm run build | |
| - name: Configure Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: ./out | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 | |