Skip to content

Commit

Permalink
download assets before build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Payne committed Mar 8, 2024
1 parent 20422dc commit a10a128
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ jobs:
uses: snok/install-poetry@v1
- name: Install Dependencies
run: poetry install --no-interaction
- run: make html
- name: Set up S3cmd cli tool
uses: s3-actions/[email protected]
with:
provider: aws # default is linode
region: 'eu-central-1'
access_key: ${{ secrets.S3_ACCESS_KEY }}
secret_key: ${{ secrets.S3_SECRET_KEY }}
- name: Copy to S3
- name: Download Static Assets
run: s3cmd sync s3://static.kenpayne.co.uk/ docs/assets/
- name: Build Site
run: make html
- name: Publish Site
run: |
s3cmd rm --recursive --force s3://blog.kenpayne.co.uk/
s3cmd put --recursive site/ s3://blog.kenpayne.co.uk/ --acl-public --guess-mime-type --no-mime-magic --add-header='Cache-Control:max-age=0'
s3cmd sync s3://static.kenpayne.co.uk/ s3://blog.kenpayne.co.uk/assets/ --acl-public --guess-mime-type --no-mime-magic --add-header='Cache-Control:max-age=0'
- run: echo "Done 🚀"

0 comments on commit a10a128

Please sign in to comment.