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

28 lines
760 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-03 23:12:56 +00:00
run: hugo
- name: Check file content is present
2024-09-03 22:58:24 +00:00
run: pwd && ls -lRt public/
2024-09-03 23:42:18 +00:00
- name: SCP Files in public up to the remote ( prolly us ) server
uses: appleboy/scp-action@master
2024-09-03 23:45:54 +00:00
with:
2024-09-03 23:43:44 +00:00
HOST: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USER }}
PORT: ${{ secrets.PORT }}
KEY: ${{ secrets.PRIVATE_KEY }}
2024-09-03 23:42:18 +00:00
source: "public"
target: "/opt/nginx/test.shockrah.xyz"