This commit is contained in:
parent
297521efdc
commit
9dd9940e55
26
.gitea/workflows/develop-deploy.yml
Normal file
26
.gitea/workflows/develop-deploy.yml
Normal file
@ -0,0 +1,26 @@
|
||||
name: Build Site Develop
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- develop
|
||||
|
||||
jobs:
|
||||
Build-Site:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18.18.2'
|
||||
- run: npm install
|
||||
- run: npm run build
|
||||
- name: Publish
|
||||
uses: nogsantos/scp-deploy@master
|
||||
with:
|
||||
src: ./build/*
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
remote: /mnt/user/appdata/binhex-nginx/nginx/html/
|
||||
port: 69
|
||||
user: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_KEY }}
|
17
.gitea/workflows/main-deploy.yml
Normal file
17
.gitea/workflows/main-deploy.yml
Normal file
@ -0,0 +1,17 @@
|
||||
name: Build Site Main
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Build-Site:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16.x'
|
||||
- run: npm install
|
||||
- run: npm run build
|
18
.gitea/workflows/pr-build.yml
Normal file
18
.gitea/workflows/pr-build.yml
Normal file
@ -0,0 +1,18 @@
|
||||
name: Build Site PR
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- 'feat/**'
|
||||
- 'develop'
|
||||
|
||||
jobs:
|
||||
Build-Site:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16.x'
|
||||
- run: npm install
|
||||
- run: npm run build
|
Loading…
Reference in New Issue
Block a user