resume/.gitea/workflows/build-and-deploy.yml
shockrah ce1e713949
Some checks failed
Build and Deploy Resume Site / setup-website-content (push) Failing after 9s
Trying out the apple boy gh action
2024-09-03 16:42:18 -07:00

29 lines
773 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
- name: Check file content is present
run: pwd && ls -lRt public/
- 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"