Merge pull request #17 from marisviana/feat/industry-vertical-evals #9
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 Demos to Pages | |
| on: | |
| push: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| cache-dependency-path: 'demos/react-flightsearch/package-lock.json' | |
| - name: Build Demos | |
| run: | | |
| cd demos/react-flightsearch | |
| npm install | |
| npm run build | |
| cd .. | |
| - name: Assemble Public Folder | |
| run: | | |
| mkdir -p deployment-root/demos | |
| cp -r demos/french-bistro deployment-root/demos/french-bistro | |
| cp -r demos/react-flightsearch/dist deployment-root/demos/react-flightsearch | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v4 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: './deployment-root' | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |