resume/.gitea/workflows/build-and-deploy.yml

26 lines
678 B
YAML
Raw Normal View History

name: Build and Deploy Resume Site
on:
push:
branches:
- master
jobs:
setup-website-content:
runs-on: ubuntu-latest
2024-09-03 22:36:49 +00:00
container:
image: shockrah/hugo
steps:
2024-09-29 21:25:28 +00:00
- run: git init
- run: git remote add origin https://git.shockrah.xyz/shockrah/resume.git
- run: git pull origin main
- name: Build website content
2024-09-28 22:02:38 +00:00
run: hugo && pwd && ls -R
- name: Copy files with rsync
2024-09-28 22:53:42 +00:00
uses: tempersama/rsync-copy@2.6
2024-09-26 03:21:22 +00:00
with:
host: shockrah.xyz
2024-09-28 22:36:43 +00:00
username: ${{ secrets.USER }}
2024-09-28 22:00:52 +00:00
source: "public/"
2024-09-28 22:53:42 +00:00
destination: /opt/nginx/resume.shockrah.xyz/
2024-09-26 03:21:22 +00:00
key: ${{ secrets.PRIVATE_KEY }}