UI updates #5
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.10.0 # Use the desired Node.js version | |
- name: Install dependencies and build Next.js app | |
run: | | |
npm install # Install project dependencies | |
touch .env | |
echo NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} >> .env | |
echo NEXTAUTH_URL=${{ secrets.NEXTAUTH_URL }} >> .env | |
echo AUTHORIZATION=${{ secrets.AUTHORIZATION }} >> .env | |
npm run build # Build Next.js app | |
- name: Deploy via FTP | |
uses: SamKirkland/FTP-Deploy-Action@4.3.3 | |
with: | |
server: ftp.crepant.com | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} | |
server-dir: / |