This commit is contained in:
parent
7c973ac48a
commit
0e156d5f61
2 changed files with 6 additions and 28 deletions
6
.forgejo/workflows/deploy.yaml
Normal file
6
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,6 @@
|
|||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: byggmester
|
||||
steps:
|
||||
- run: npm i
|
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
|
@ -1,28 +0,0 @@
|
|||
name: Build on self hosted runner
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master2
|
||||
jobs:
|
||||
build:
|
||||
name: Build Website
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
- run: |
|
||||
npm install
|
||||
npm run build
|
||||
- name: Rsync to server
|
||||
uses: burnett01/rsync-deployments@5.2
|
||||
with:
|
||||
switches: -avzr --delete
|
||||
path: dist
|
||||
remote_path: /var/www/polsevev
|
||||
remote_host: ${{secrets.SERVER_IP}}
|
||||
remote_user: ansible
|
||||
remote_key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
remote_port: 22
|
Loading…
Reference in a new issue