This commit is contained in:
parent
f85a8aaced
commit
6118d5abf5
32
.gitea/workflows/deploy.yaml
Normal file
32
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
name: Deploy
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check
|
||||||
|
uses: zolacti/on@check
|
||||||
|
with:
|
||||||
|
drafts: true
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
uses: zolacti/on@build
|
||||||
|
|
||||||
|
- name: Deploy 🚀
|
||||||
|
uses: appleboy/scp-action@v0.1.7
|
||||||
|
with:
|
||||||
|
host: ${{ vars.ATLAS_SSH_HOST }}
|
||||||
|
username: ${{ vars.ATLAS_SSH_USERNAME }}
|
||||||
|
key: ${{ secrets.ATLAS_SSH_KEY }}
|
||||||
|
port: ${{ vars.ATLAS_SSH_PORT }}
|
||||||
|
source: public
|
||||||
|
target: /www/blog
|
||||||
|
rm: true
|
||||||
|
overwrite: true
|
Loading…
x
Reference in New Issue
Block a user