2024-08-28 02:19:31 +00:00
|
|
|
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
|
2024-08-28 02:19:31 +00:00
|
|
|
steps:
|
2024-09-29 21:25:28 +00:00
|
|
|
- run: git init
|
|
|
|
- run: git remote add origin https://git.shockrah.xyz/shockrah/resume.git
|
2024-09-29 21:25:56 +00:00
|
|
|
- run: git pull origin master
|
2024-08-28 02:19:31 +00:00
|
|
|
- name: Build website content
|
2024-09-28 22:02:38 +00:00
|
|
|
run: hugo && pwd && ls -R
|
2024-09-28 21:38:27 +00:00
|
|
|
- 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 }}
|