temper-tv/.gitea/workflows/build-and-deploy.yml

27 lines
700 B
YAML
Raw Permalink Normal View History

2024-09-30 05:29:46 +00:00
name: Build and Deploy Resume 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/temper-tv.git
- run: git pull origin master
- name: Build website content
2024-09-30 05:38:28 +00:00
run: cd main-site && pwd && ls -a && hugo
2024-09-30 05:29:46 +00:00
- name: Copy files with rsync
uses: tempersama/rsync-copy@2.6
with:
host: shockrah.xyz
username: ${{ secrets.USER }}
source: "main-site/public/"
2024-09-30 06:36:08 +00:00
destination: /opt/nginx/temper.tv/
2024-09-30 05:29:46 +00:00
key: ${{ secrets.PRIVATE_KEY }}