chore(release): add agent release workflow #446
Workflow file for this run
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: Agent Note Dashboard | |
| on: | |
| push: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| permissions: | |
| contents: write | |
| pages: write | |
| id-token: write | |
| pull-requests: read | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_deploy: ${{ steps.dashboard.outputs.should_deploy }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| cache-dependency-path: website/package-lock.json | |
| - run: npm ci --prefix website | |
| - run: npm run build --prefix website | |
| - name: Build Dashboard bundle | |
| id: dashboard | |
| uses: ./ | |
| with: | |
| dashboard: true | |
| - name: Upload Pages artifact | |
| if: steps.dashboard.outputs.should_deploy == 'true' | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: website/dist | |
| deploy: | |
| if: needs.build.outputs.should_deploy == 'true' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |