Add Forgejo Actions workflow for deployment
Some checks are pending
Deploy to Production / deploy (push) Waiting to run

This commit is contained in:
BarnacleBoy 2026-05-14 03:29:15 +00:00
parent 3b72a4c99f
commit 1bedac1f9d

View file

@ -0,0 +1,35 @@
name: Deploy to Production
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-4gb-fsn1-2
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.11.0
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build:vdn-static
- name: Deploy
run: |
rm -rf /var/www/viossa.net/*
cp -r apps/vdn-static/dist/* /var/www/viossa.net/