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

29 lines
773 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
env:
HOST: ${{ secrets.host }}
USERNAME: ${{ secrets.user }}
PORT: ${{ secrets.port }}
KEY: ${{ secrets.private_key }}
with:
source: "public"
target: "/opt/nginx/test.shockrah.xyz"