Update App.css #18
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 React Frontend | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: 'npm' | |
| - name: Install Dependencies | |
| run: npm install --legacy-peer-deps | |
| - name: Build Project | |
| # TODO: Fix all lints and replace with "build" | |
| run: npm run buildWithoutLints | |
| - name: Deploy Static Files to VPS | |
| uses: appleboy/scp-action@v1.0.0 | |
| with: | |
| host: ${{ secrets.VPS_IP }} | |
| username: ${{ secrets.VPS_USER }} | |
| key: ${{ secrets.SSH_PRIVATE_KEY }} | |
| port: ${{ secrets.VPS_PORT }} | |
| source: "dist/*" | |
| target: "/var/www/market/frontend/" | |
| strip_components: 1 | |
| overwrite: true |