New post :D
This commit is contained in:
27
.gitea/workflows/build-and-deploy.yaml
Normal file
27
.gitea/workflows/build-and-deploy.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Build and Deploy Blog Site
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
setup-website-content:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: shockrah/hugo
|
||||
steps:
|
||||
- run: git init
|
||||
- run: git remote add origin https://git.shockrah.xyz/shockrah/blog.git
|
||||
- run: git pull origin master
|
||||
- name: Build website content
|
||||
run: hugo
|
||||
- name: Copy files with rsync
|
||||
uses: tempersama/rsync-copy@2.6
|
||||
with:
|
||||
host: shockrah.xyz
|
||||
username: ${{ secrets.USER }}
|
||||
source: "public/"
|
||||
destination: /opt/nginx/shockrah.xyz/
|
||||
key: ${{ secrets.PRIVATE_KEY }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user