55# A pre-deploy script that must be run in GitHub Actions to:
66# - Update timestamps and hashes
77# - Generate the ebooks
8+ # - Upload ebooks as artifacts
89# - Submit a Pull Request with the changes
910#
1011# This should be run before every release
3637 with :
3738 node-version : ' 16'
3839 - name : Set up Python 3.8
39- uses : actions/setup-python@v4.5 .0
40+ uses : actions/setup-python@v4.6 .0
4041 with :
4142 python-version : ' 3.8'
4243 - name : Install Asian Fonts
@@ -63,19 +64,27 @@ jobs:
6364 run : |
6465 cd src
6566 npm run ebooks
67+ - name : Upload PDF artifact
68+ if : ${{ github.event.inputs.ebooks == 'true' }}
69+ uses : actions/upload-artifact@v3
70+ with :
71+ name : pdfs
72+ path : ./src/static/pdfs/*.pdf
73+ if-no-files-found : warn # 'warn' or 'ignore' are also available, defaults to `warn`
74+ retention-days : 5 # defaults to 90
6675 - name : Update timestamps
6776 run : |
6877 cd src
6978 npm run timestamps
7079 - name : Create Pull Request
7180 id : cpr
72- uses : peter-evans/create-pull-request@v4
81+ uses : peter-evans/create-pull-request@v5
7382 with :
7483 title : Pre-deploy Updates
7584 branch-suffix : timestamp
76- commit-message : Update Timestamps and Generate Ebooks
85+ commit-message : Update Timestamps
7786 body : |
78- Updated Timestamps and Regenerated Ebooks through GitHub action
87+ Updated Timestamps through GitHub action
7988 - Auto-generated by [create-pull-request][1] GitHub Action
8089
8190 [1]: https://github.com/peter-evans/create-pull-request
0 commit comments