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

25 lines
617 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:
- name: Checkout repository resources
uses: actions/checkout@v4
- 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:35:12 +00:00
uses: tempersama/rsync-copy@2.5
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/"
destination: /opt/nginx/test.shockrah.xyz
2024-09-26 03:21:22 +00:00
key: ${{ secrets.PRIVATE_KEY }}