-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ken Payne
committed
Mar 8, 2024
1 parent
20422dc
commit a10a128
Showing
1 changed file
with
5 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 🚀" |