Skip to content

Merge pull request #5 from Gunivers/dependabot/npm_and_yarn/sveltejs/… #3

Merge pull request #5 from Gunivers/dependabot/npm_and_yarn/sveltejs/…

Merge pull request #5 from Gunivers/dependabot/npm_and_yarn/sveltejs/… #3

Workflow file for this run

name: Build And Upload
on:
push:
branches: [ main ]
workflow_dispatch:
concurrency:
group: "build"
cancel-in-progress: true
jobs:
builds:
name: "Build 🔨"
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "npm"
- name: Build Sveltekit
run: |
npm i
npm run build
- name: Upload to Server 📁
uses: sebastianpopp/ftp-action@releases/v2
with:
host: ${{ secrets.ftp_server }}
user: ${{ secrets.ftp_username }}
password: ${{ secrets.ftp_password }}
options: "--delete"
localDir: "build"