Merge pull request #229 from EverMind-AI/codex/fix-github-actions-hyg… #4
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 Website | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'benchmarks/EvoAgentBench/website/**' | |
| - '.github/workflows/deploy-website.yml' | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| check-target: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| website-exists: ${{ steps.website.outputs.exists }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - id: website | |
| name: Check website package | |
| run: | | |
| if [ -f benchmarks/EvoAgentBench/website/package.json ]; then | |
| echo "exists=true" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "exists=false" >> "$GITHUB_OUTPUT" | |
| echo "::notice::benchmarks/EvoAgentBench/website/package.json is not present; skipping website deploy." | |
| fi | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: check-target | |
| if: needs.check-target.outputs.website-exists == 'true' | |
| defaults: | |
| run: | |
| working-directory: benchmarks/EvoAgentBench/website | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: benchmarks/EvoAgentBench/website/package-lock.json | |
| - run: npm ci | |
| - name: Build | |
| env: | |
| NEXT_PUBLIC_BASE_PATH: /EverOS | |
| run: npm run build | |
| - run: touch out/.nojekyll | |
| - uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: benchmarks/EvoAgentBench/website/out | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| if: needs.build.result == 'success' | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v5 |