Repository navigation
Community board #59
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: Community board | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| issues: | |
| types: [opened, closed, reopened, labeled] | |
| schedule: | |
| - cron: '2-57/5 * * * *' | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: community-board | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| if: github.ref == 'refs/heads/main' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 | |
| with: | |
| ref: main | |
| persist-credentials: false | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 | |
| with: | |
| node-version: '22' | |
| - run: npm run check && npm test | |
| - name: Load the durable community data snapshot | |
| run: node scripts/state-cli.mjs load | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Reconcile public bounties and verified main merges | |
| run: node scripts/run.mjs --persist-awards | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - name: Persist verified points before publication | |
| run: node scripts/state-cli.mjs save | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - run: npm run build | |
| - uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa | |
| with: | |
| path: _site | |
| deploy: | |
| if: github.ref == 'refs/heads/main' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy | |
| id: deployment | |
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e |