Use Calibre’s GitHub Action to automate CI/CD workflows with Calibre. The action is a wrapper around Calibre CLI, so you can run CLI commands as part of your build process.
Add a .github/workflows/calibre.yml file to your repository to install the action. See the action README for more information..
1name: Create deploy marker in Calibre2on:3 push:4 branches:5 - main67jobs:8 build:9 name: calibreapp/github-actions10 runs-on: ubuntu-latest11 steps:12 - name: Create deploy13 uses: calibreapp/github-actions@main14 env:15 CALIBRE_API_TOKEN: ${{ secrets.CALIBRE_API_TOKEN }}16 with:17 command: site create-deploy --site=${{ secrets.CALIBRE_SITE_SLUG }} --revision=${{ env.GITHUB_SHA }} --repository https://github.com/${{ env.GITHUB_REPOSITORY }}18 - name: Get result19 run: echo "${{steps.set-result.outputs.result}}"
Merges to the main branch will trigger the workflow and create a deploy marker in Calibre.