Skip to content

Commit

Permalink
deploy + caching updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jhersh committed Dec 1, 2024
1 parent cf581dd commit f2b3f50
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/herdotsh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Lint
run: rake lint
- name: cache
uses: actions/upload-artifact@v3.1.2
uses: actions/upload-artifact@v4
with:
name: site
path: _site
Expand All @@ -45,7 +45,7 @@ jobs:
pip install s3cmd
s3cmd --version
- name: Download site
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: site
path: _site
Expand Down
9 changes: 8 additions & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@ s3cmd sync --verbose -M --progress --acl-public \
--recursive --access_key=$SITE_AWS_KEY \
--secret_key=$SITE_AWS_SECRET --no-mime-magic \
--add-header='Content-Encoding:gzip' \
--add-header='Cache-Control:max-age=86400' \
_site/ s3://her.sh/ \
--exclude '*.*' \
--include '*.css'

s3cmd --recursive modify \
--access_key=$SITE_AWS_KEY \
--secret_key=$SITE_AWS_SECRET \
--add-header='Cache-Control: max-age=60' \
s3://her.sh/ \
--exclude '*.*' \
--include '*.html' --include '*.xml' --include '*.css'

s3cmd sync --verbose -M --progress --acl-public \
--recursive --access_key=$SITE_AWS_KEY \
--secret_key=$SITE_AWS_SECRET --no-mime-magic \
Expand Down

0 comments on commit f2b3f50

Please sign in to comment.