20 lines
746 B
YAML
20 lines
746 B
YAML
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly
|
|
|
|
name: Web Build
|
|
jobs:
|
|
install_dependencies_and_build:
|
|
name: Install Dependencies and Build Web
|
|
runs-on: web-self-hosted
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- run: git pull
|
|
working-directory: /home/neko/Workspace/Git/imnyang/imnyang
|
|
- run: bun install
|
|
working-directory: /home/neko/Workspace/Git/imnyang/imnyang
|
|
- run: bun run build
|
|
working-directory: /home/neko/Workspace/Git/imnyang/imnyang
|
|
- run: pm2 restart imnya.ng > /dev/null 2>&1
|
|
working-directory: /home/neko/Workspace/Git/imnyang/imnyang
|