forked from Jon-Schneider/MMM-Ebook
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 910 Bytes
/
build.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
34
35
36
37
38
name: release
on:
# push
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Generate Ebooks
steps:
- name: set env
id: tag
run: echo "::set-output name=release_tag::$(date +"%Y.%m.%d")"
- name: Checkout
uses: actions/checkout@v3
- name: Generate
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- run: pip install -r requirements.txt
- run: sudo apt install calibre
- run: ./generate-ebooks.py
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: |
mmm.azw3
mmm.epub
mmm.mobi
mmm.pdf