chore: migration to Svelte 5 #25
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: Node CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: '20' | |
- name: Install npm dependencies | |
run: npm install | |
- name: Generate .env file | |
run: | | |
echo "VITE_KEY=${{ secrets.VITE_KEY }}" | iconv -t utf-8 > .env | |
- name: Run build task | |
run: npm run build --if-present | |
- name: Deploy to Server | |
uses: easingthemes/ssh-deploy@main | |
with: | |
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | |
ARGS: '-rlgoDzvc -i --delete' | |
SOURCE: 'package.json build/ .env' | |
REMOTE_HOST: ${{ secrets.REMOTE_HOST }} | |
REMOTE_USER: ${{ secrets.REMOTE_USER }} | |
TARGET: ${{ secrets.REMOTE_TARGET }} | |
EXCLUDE: '/build/, /node_modules/' |