shockrah
29670cbd01
Some checks failed
Build and Deploy Resume Site / setup-website-content (push) Failing after 6s
28 lines
760 B
YAML
28 lines
760 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
|
|
with:
|
|
HOST: ${{ secrets.HOST }}
|
|
USERNAME: ${{ secrets.USER }}
|
|
PORT: ${{ secrets.PORT }}
|
|
KEY: ${{ secrets.PRIVATE_KEY }}
|
|
source: "public"
|
|
target: "/opt/nginx/test.shockrah.xyz"
|