Skip to content

Initial commit

Initial commit #5

Workflow file for this run

name: Release the book
on:
push:
branches:
- main
env:
IMAGE: ghcr.io/${{ github.repository }}:latest
jobs:
build-and-push-image:
uses: ./.github/workflows/docker-build-push.yml

Check failure on line 12 in .github/workflows/release-book.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release-book.yml

Invalid workflow file

error parsing called workflow ".github/workflows/release-book.yml" -> "./.github/workflows/docker-build-push.yml" (source branch with sha:7e8c9e2cd2fc5555acf13f0701ab548760b33dd5) : workflow is not reusable as it is missing a `on.workflow_call` trigger
release-book-website:
needs: build-and-push-image
runs-on: ubuntu-latest
steps:
- name: Set up git repository
uses: actions/checkout@v3
- name: Print dependency versions
uses: addnab/docker-run-action@v3
with:
image: ${{ env.IMAGE }}
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make show_tools_version
- name: Print build variables
uses: addnab/docker-run-action@v3
with:
image: ${{ env.IMAGE }}
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make printvars
- name: Bake the book
uses: addnab/docker-run-action@v3
with:
image: ${{ env.IMAGE }}
options: -v ${{ github.workspace }}:/app
run: |
cd /app/book
make -j 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-recipes
- name: Upload book Artifacts
uses: actions/upload-artifact@v3
with:
name: books
path: |
book/book_serif/book.log
book/book_serif/book.pdf
book/book-epub/book.epub