mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-08 12:11:11 -06:00
Compare commits
6 Commits
8b83e1c5b6
...
cef0d9c8f7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cef0d9c8f7 | ||
|
|
656404782a | ||
|
|
ea75a1ac8a | ||
|
|
9e4e03bcfa | ||
|
|
b783b1e274 | ||
|
|
fb5f526b2f |
56
.github/workflows/release-book-website.yml
vendored
56
.github/workflows/release-book-website.yml
vendored
@@ -65,15 +65,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd /app/book
|
cd /app/book
|
||||||
make -j -O bake
|
make -j -O bake
|
||||||
- name: Release baked book to S3
|
- name: Copy book to downloads server
|
||||||
uses: shallwefootball/s3-upload-action@master
|
uses: burnett01/rsync-deployments@7.0.2
|
||||||
with:
|
with:
|
||||||
aws_key_id: ${{ secrets.AWS_KEY_ID }}
|
switches: "-avzr"
|
||||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
|
remote_host: ${{ secrets.SSH_HOST }}
|
||||||
aws_bucket: ${{ secrets.AWS_BUCKET_BOOK }}
|
remote_user: ${{ secrets.SSH_USERNAME }}
|
||||||
source_dir: book/release
|
remote_key: ${{ secrets.SSH_KEY }}
|
||||||
destination_dir: release
|
path: "book/release/*"
|
||||||
- name: Upload book Artifacts
|
remote_path: "~/downloads/the-sourdough-framework/"
|
||||||
|
- name: Upload book artifacts to GitHub
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: books
|
name: books
|
||||||
@@ -81,36 +82,17 @@ jobs:
|
|||||||
book/book_serif/book.log
|
book/book_serif/book.log
|
||||||
book/book_serif/book.pdf
|
book/book_serif/book.pdf
|
||||||
book/book-epub/book.epub
|
book/book-epub/book.epub
|
||||||
- name: Release baked website to S3
|
- name: Copy website to downloads server
|
||||||
uses: shallwefootball/s3-upload-action@master
|
uses: burnett01/rsync-deployments@7.0.2
|
||||||
with:
|
with:
|
||||||
aws_key_id: ${{ secrets.AWS_KEY_ID }}
|
switches: "-avzr --delete"
|
||||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
|
remote_host: ${{ secrets.SSH_HOST }}
|
||||||
aws_bucket: ${{ secrets.AWS_BUCKET_WEBSITE }}
|
remote_user: ${{ secrets.SSH_USERNAME }}
|
||||||
source_dir: website/static_website_html
|
remote_key: ${{ secrets.SSH_KEY }}
|
||||||
destination_dir: static_html_root
|
path: "website/static_website_html/*"
|
||||||
- name: Upload website Artifacts
|
remote_path: "~/the-sourdough-framework/"
|
||||||
|
- name: Upload website artifacts to GitHub
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: website
|
name: website
|
||||||
path: website/static_website_html
|
path: website/static_website_html
|
||||||
invalidate-book-website-cache:
|
|
||||||
needs: release-book-website
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Invalidate Cloudfront book cache
|
|
||||||
uses: chetan/invalidate-cloudfront-action@v2
|
|
||||||
env:
|
|
||||||
DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION_BOOK }}
|
|
||||||
PATHS: "/*"
|
|
||||||
AWS_REGION: "us-east-1"
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
- name: Invalidate Cloudfront website cache
|
|
||||||
uses: chetan/invalidate-cloudfront-action@v2
|
|
||||||
env:
|
|
||||||
DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION_WEBSITE }}
|
|
||||||
PATHS: "/*"
|
|
||||||
AWS_REGION: "us-east-1"
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
4
.github/workflows/test-book-website.yml
vendored
4
.github/workflows/test-book-website.yml
vendored
@@ -41,7 +41,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd /app/book
|
cd /app/book
|
||||||
make -j -O serif ebook website
|
make -j -O serif ebook website
|
||||||
- name: Upload book Artifacts
|
- name: Upload book artifacts to GitHub
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: books
|
name: books
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
book/book_serif/book.log
|
book/book_serif/book.log
|
||||||
book/book_serif/book.pdf
|
book/book_serif/book.pdf
|
||||||
book/book-epub/book.epub
|
book/book-epub/book.epub
|
||||||
- name: Upload website Artifacts
|
- name: Upload website artifacts to GitHub
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: website
|
name: website
|
||||||
|
|||||||
Reference in New Issue
Block a user