delete deploy.yml
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
name: Deploy Portfolio
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: self-hosted
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: 20
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Build Angular
|
|
||||||
run: npm run build -- --configuration production
|
|
||||||
|
|
||||||
- name: Deploy to NAS
|
|
||||||
run: |
|
|
||||||
echo "Deploy started at $(date)"
|
|
||||||
rm -rf /volume1/web/www/rc-portfolio/*
|
|
||||||
cp -r dist/* /volume1/web/www/rc-portfolio/
|
|
||||||
echo "Deploy finished at $(date)"
|
|
||||||
Reference in New Issue
Block a user