resume/.gitea/workflows/build-and-deploy.yml
shockrah b71cadd3b8
All checks were successful
Build and Deploy Resume Site / setup-website-content (push) Successful in 6s
Replacing checkout action
2024-09-29 14:25:56 -07:00

26 lines
680 B
YAML

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/resume.git
- run: git pull origin master
- name: Build website content
run: hugo && pwd && ls -R
- name: Copy files with rsync
uses: tempersama/rsync-copy@2.6
with:
host: shockrah.xyz
username: ${{ secrets.USER }}
source: "public/"
destination: /opt/nginx/resume.shockrah.xyz/
key: ${{ secrets.PRIVATE_KEY }}