Fix page not found #9
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: "Deploy frontend" | |
on: | |
push: | |
branches: | |
- "main" | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Download deps | |
uses: bahmutov/npm-install@v1 | |
- name: Run Typecheck/Lint | |
run: | | |
npm run lint | |
npm run typecheck | |
- name: Run frontend tests | |
run: | | |
npm run build | |
- name: 📂 Sync files | |
uses: SamKirkland/FTP-Deploy-Action@v4.3.5 | |
with: | |
server: ftp.domeneshop.no | |
username: accosta | |
password: ${{ secrets.ftp_password }} | |
local-dir: ./build/client/ | |
server-dir: www/ |