Merge pull request #1588 from hackforla/dev #238
This file contains 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: Node.js CI/CD | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build client files | |
run: | | |
cd products/statement-generator | |
npm install | |
npm run build | |
- name: Publish generated content to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
folder: products/statement-generator/build | |
branch: gh-pages | |
token: ${{secrets.GITHUB_TOKEN}} |