mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-12-07 01:54:26 -06:00
Improve website deployment (#139)
* Fix issue of book not building * add dependencies * fix * test make4ht * fix cmd * Use own docker image * Add label * fix urls * Add validate command * build non mac version * tmp run * use smaller tex version * build full
This commit is contained in:
committed by
GitHub
parent
62a9e9a000
commit
509092c56e
32
.github/workflows/release-book.yml
vendored
Normal file
32
.github/workflows/release-book.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Release the book
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
build_and_release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set up git repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Bake the book
|
||||
uses: docker://ghcr.io/hendricius/the-sourdough-framework:latest
|
||||
with:
|
||||
run: |
|
||||
make bake
|
||||
- name: Release baked book to S3
|
||||
uses: shallwefootball/s3-upload-action@master
|
||||
with:
|
||||
aws_key_id: ${{ secrets.AWS_KEY_ID }}
|
||||
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
|
||||
aws_bucket: ${{ secrets.AWS_BUCKET_BOOK }}
|
||||
source_dir: book/release
|
||||
destination_dir: release
|
||||
- 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 }}
|
||||
Reference in New Issue
Block a user