resume/.gitea/workflows/build-and-deploy.yml
shockrah 5248daec9c
All checks were successful
Build and Deploy Resume Site / setup-website-content (push) Successful in 6s
Avoid setting dir times with 2.6
2024-09-28 15:53:42 -07:00

25 lines
620 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:
- name: Checkout repository resources
uses: actions/checkout@v4
- 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 }}