resume/.gitea/workflows/build-and-deploy.yml
shockrah a15f7576da
Some checks failed
Build and Deploy Resume Site / setup-website-content (push) Failing after 2s
Build and Deploy Resume Site / push-content (push) Has been skipped
upload & download site content
2024-09-03 16:12:56 -07:00

36 lines
852 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: Upload artifacts for next job to use
uses: actions/upload-artifacts@v4
with:
name: site_content
path: public/
retention-days: 3
push-content:
needs: setup-website-content
runs-on: ubuntu-latest
container:
image: shockrah/hugo
steps:
- name: Download site content for upload
uses: actions/download-artifacts@v4
with:
name: site_content
- name: Check file content is present
run: pwd && ls -lRt public/