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:
@@ -12,19 +12,10 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Node
|
- name: Install & Build
|
||||||
uses: actions/setup-node@v4
|
run: npm ci && npm run build
|
||||||
with:
|
|
||||||
node-version: '22'
|
|
||||||
cache: 'npm'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Deploy
|
||||||
run: npm ci
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Deploy to /var/www
|
|
||||||
run: |
|
run: |
|
||||||
rm -rf /var/www/os.m1ngdaxie.com/*
|
rm -rf /var/www/os.m1ngdaxie.com/*
|
||||||
cp -r dist/* /var/www/os.m1ngdaxie.com/
|
cp -r dist/* /var/www/os.m1ngdaxie.com/
|
||||||
Reference in New Issue
Block a user