-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from Cannon07/upload_book_workflow
Upload book workflow
- Loading branch information
Showing
5 changed files
with
92 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build latest version of PDF Book | ||
|
||
on: | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: [rebuild-book] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build_pdf_book: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install requirements | ||
run: | | ||
cd new-website | ||
cd utils | ||
pip install -r requirements.txt | ||
sudo apt-get install -y poppler-utils | ||
sudo apt-get install -y wkhtmltopdf | ||
- name: fetch latest version of tutorials | ||
run: | | ||
sudo apt-get install jq | ||
cd new-website | ||
cd utils/tutorials | ||
python3 fetch_tutorials.py | ||
- name: build pdf book | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
run: | | ||
cd new-website | ||
cd utils/tutorials | ||
python3 build_pdf_book.py | ||
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
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
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
Binary file not shown.