Github Actions Update
This commit is contained in:
parent
c4ed0b3e94
commit
e18279f7a0
1 changed files with 29 additions and 5 deletions
32
.github/workflows/main.yml
vendored
32
.github/workflows/main.yml
vendored
|
|
@ -5,15 +5,39 @@ on:
|
||||||
|
|
||||||
name: Web Build
|
name: Web Build
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
checkout:
|
||||||
name: Build the web
|
name: Checkout Code
|
||||||
runs-on: web-self-hosted
|
runs-on: web-self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
install_dependencies:
|
||||||
|
name: Install Dependencies
|
||||||
|
runs-on: web-self-hosted
|
||||||
|
needs: checkout
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- run: pwd && ls -al
|
- run: pwd && ls -al
|
||||||
- run: bun install
|
- run: bun install
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build Web
|
||||||
|
runs-on: web-self-hosted
|
||||||
|
needs: install_dependencies
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
- run: bun run build
|
- run: bun run build
|
||||||
|
|
||||||
|
clean_up:
|
||||||
|
name: Clean Up Old Files
|
||||||
|
runs-on: web-self-hosted
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
- run: rm -rf /var/static/imnya.ng
|
- 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: cp -r dist /var/static/imnya.ng
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue