Skip to content

Bump vite from 7.0.2 to 7.0.3 #62

Bump vite from 7.0.2 to 7.0.3

Bump vite from 7.0.2 to 7.0.3 #62

name: "Build and deploy"
on:
- "push"
- "workflow_dispatch"
jobs:
build:
name: "Build 🔨"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- uses: "actions/setup-node@v4"
with:
cache: "npm"
- run: "npm install"
- run: "npm run build"
- uses: "actions/upload-artifact@v4"
with:
name: "dist"
path: "dist"
deploy-staging:
name: "Deploy 🚜️"
runs-on: "ubuntu-latest"
if: "startsWith(github.ref, 'refs/tags/')"
needs:
- "build"
steps:
- name: "update apt cache"
run: "sudo apt-get update"
- name: "install rclone"
run: "sudo apt-get -y install rclone"
- uses: "actions/download-artifact@v4"
with:
name: "dist"
path: "dist"
- name: "obfuscate password for rclone"
run: "echo \"RCLONE_FTP_PASS=$(echo ${{ secrets.HETZNER_FTP_PASS}} | rclone obscure -)\" >> $GITHUB_ENV"
- name: "sync webspace"
run: "rclone sync dist :ftp:"
env:
RCLONE_FTP_HOST: "${{ vars.HETZNER_FTP_HOST }}"
RCLONE_FTP_USER: "${{ secrets.HETZNER_FTP_USER }}"
RCLONE_FTP_EXPLICIT_TLS: "true"
RCLONE_VERBOSE: 1