빠른 Replace
This commit is contained in:
parent
0c8dab1c10
commit
ef50c99f1b
1 changed files with 3 additions and 10 deletions
13
.github/workflows/main.yml
vendored
13
.github/workflows/main.yml
vendored
|
|
@ -21,16 +21,9 @@ jobs:
|
|||
- run: bun install
|
||||
- run: bun run build
|
||||
|
||||
clean_up:
|
||||
name: Clean Up Old Files
|
||||
replace:
|
||||
name: Replace Old Build with New Build
|
||||
runs-on: web-self-hosted
|
||||
needs: install_dependencies_and_build
|
||||
steps:
|
||||
- run: rm -rf /var/static/imnya.ng
|
||||
|
||||
deploy:
|
||||
name: Deploy New Build
|
||||
runs-on: web-self-hosted
|
||||
needs: clean_up
|
||||
steps:
|
||||
- run: cp -r dist /var/static/imnya.ng
|
||||
- run: rm -rf /var/static/imnya.ng && cp -r dist /var/static/imnya.ng
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue