Update Linkedins (#236) #64
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 Site | |
| on: | |
| push: | |
| branches: ["main"] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: write | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set Up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| cache-dependency-path: "**/package-lock.json" | |
| - name: Install npm dependencies | |
| uses: bahmutov/npm-install@v1 | |
| with: | |
| working-directory: | | |
| cdk | |
| server | |
| client | |
| - name: Build client | |
| run: | | |
| cd client | |
| npm run build | |
| cd .. | |
| env: | |
| REACT_APP_API_URL: ${{ steps.deploy-server.outputs.api_url }} | |
| - name: Publish client | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./client/dist | |
| publish_branch: gh-pages |