This repository has been archived by the owner on May 19, 2023. It is now read-only.
Add auth system #20
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 to Server | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Next.js app | |
run: npm run build | |
- name: FTP Deploy | |
uses: SamKirkland/FTP-Deploy-Action@4.0.0 | |
with: | |
server: ${{ secrets.SERVER }} | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
local-dir: .next/ | |
server-dir: .next/ |