Skip to content

Update Linkedins (#236) #64

Update Linkedins (#236)

Update Linkedins (#236) #64

Workflow file for this run

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