Merge pull request #928 from gardenenigma/main #358
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
name: Build Book | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
if: ${{ github.repository_owner == 'pluralitybook' || github.repository_owner == 'audreyt' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Generate book files | |
run: | | |
# Install necessary dependencies (e.g., Perl, Docker) | |
perl scripts/make-book.pl | |
- name: Generate book files (zh-tw) | |
run: | | |
perl scripts/make-book-zh-tw.pl | |
- uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "*.pdf,*.epub" | |
tag: latest | |
allowUpdates: true |