forked from pluralitybook/plurality
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 800 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Build Book
on:
push:
branches:
- main
jobs:
build:
if: ${{ github.repository_owner == 'pluralitybook' }}
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v2
- name: Rebuild the plurality.net website
env:
REBUILD_WEBHOOK: ${{ secrets.REBUILD_WEBHOOK }}
run: |
curl -X POST -d {} "$REBUILD_WEBHOOK"
- 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