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:
|
|
|
|
- name: Checkout repository resources
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build website content
|
2024-09-03 23:12:56 +00:00
|
|
|
run: hugo
|
|
|
|
- name: Upload artifacts for next job to use
|
|
|
|
uses: actions/upload-artifacts@v4
|
2024-09-03 22:55:00 +00:00
|
|
|
with:
|
2024-09-03 23:12:56 +00:00
|
|
|
name: site_content
|
2024-09-03 22:55:00 +00:00
|
|
|
path: public/
|
2024-09-03 23:12:56 +00:00
|
|
|
retention-days: 3
|
2024-09-03 22:55:00 +00:00
|
|
|
|
|
|
|
push-content:
|
|
|
|
needs: setup-website-content
|
2024-09-03 22:56:33 +00:00
|
|
|
runs-on: ubuntu-latest
|
2024-09-03 22:55:00 +00:00
|
|
|
container:
|
|
|
|
image: shockrah/hugo
|
|
|
|
steps:
|
2024-09-03 23:12:56 +00:00
|
|
|
- name: Download site content for upload
|
|
|
|
uses: actions/download-artifacts@v4
|
2024-09-03 22:58:24 +00:00
|
|
|
with:
|
2024-09-03 23:12:56 +00:00
|
|
|
name: site_content
|
|
|
|
- name: Check file content is present
|
2024-09-03 22:58:24 +00:00
|
|
|
run: pwd && ls -lRt public/
|