Skip to content

Commit

Permalink
Upload/download artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
justinharringa committed Mar 8, 2024
1 parent 6340aef commit 7aa4201
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,15 @@ jobs:
HUGO_DESTINATION: /github/workspace/public
run: hugo --theme=bota
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-artifact@v4
with:
name: harringa-site
path: ./public
- name: Upload s3_website.yml
uses: actions/upload-artifact@v4
with:
name: s3-website
path: ./

# Deployment job
deploy:
Expand All @@ -66,6 +72,12 @@ jobs:
S3_BUCKET: www.harringa.com
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: harringa-site
- uses: actions/download-artifact@v4
with:
name: s3-website
- name: Deploy to S3
id: deploy
run: s3_website push --site public

0 comments on commit 7aa4201

Please sign in to comment.