Update role-and-responsibilities-rsa.md #22212
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: Build 11ty frontend | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-22.04 | |
| strategy: | |
| matrix: | |
| node-version: [16.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Install dependencies | |
| run: | | |
| npm ci -w frontend | |
| - name: Test frontend | |
| run: npm run frontend:test | |
| - name: Build frontend | |
| run: | | |
| npm run build -w frontend -- --pathprefix 'kdl' | |
| npm run index -w frontend | |
| - name: Deploy to GitHub pages | |
| if: github.ref == 'refs/heads/develop' | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| publish_dir: ./frontend/_site | |
| github_token: ${{ secrets.GITHUB_TOKEN }} |