Merge pull request #5 from Gunivers/dependabot/npm_and_yarn/sveltejs/… #3
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: 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" |