refactor(deploy): streamline deployment workflow by consolidating steps
Some checks failed
Deploy / deploy (push) Failing after 19s
Some checks failed
Deploy / deploy (push) Failing after 19s
This commit is contained in:
@@ -1,30 +1,21 @@
|
||||
name: Deploy
|
||||
name: Deploy
|
||||
|
||||
on:
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '22'
|
||||
cache: 'npm'
|
||||
- name: Install & Build
|
||||
run: npm ci && npm run build
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Deploy to /var/www
|
||||
- name: Deploy
|
||||
run: |
|
||||
rm -rf /var/www/os.m1ngdaxie.com/*
|
||||
cp -r dist/* /var/www/os.m1ngdaxie.com/
|
||||
Reference in New Issue
Block a user