Skip to content

feat: add gu image, update action #18

feat: add gu image, update action

feat: add gu image, update action #18

Workflow file for this run

name: Build and deploy
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- uses: actions/upload-artifact@v7
with:
name: build-files
path: dist/*
publish:
runs-on: ubuntu-latest
needs: build
steps:
- name: Get build files
uses: actions/download-artifact@v8
with:
name: build-files
path: dist
- name: Publish to VPS
uses: appleboy/scp-action@v1
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_PRIVATE_KEY }}
debug: true
source: dist/*
target: "/var/www/html/homepage/"
strip_components: 1