-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.woodpecker.yml
26 lines (24 loc) · 1.11 KB
/
.woodpecker.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
steps:
package-ebook:
image: witiko/markdown:latest
commands:
- apk update && apk add curl
- mkdir dist
- pandoc metadata.txt README.md -o dist/${CI_REPO_NAME}.html -s --toc --css=style.css --self-contained --metadata title=$CI_PROJECT_NAME
- curl --user ci:$TOKEN --upload-file dist/${CI_REPO_NAME}.html https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/html/${CI_REPO_NAME}.html
- pandoc metadata.txt README.md -o dist/${CI_REPO_NAME}.epub -s --toc --css=style.css
- curl --user ci:$TOKEN --upload-file dist/${CI_REPO_NAME}.epub https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/epub/${CI_REPO_NAME}.epub
secrets: [ token ]
when:
event: push
branch: main
package-pdf:
image: pandoc/latex:latest
commands:
- git submodule init && git submodule update
- xelatex --shell-escape -interaction=nonstopmode main.tex
- curl --user ci:$TOKEN --upload-file main.pdf https://code.bij1.org/api/packages/bij1/generic/${CI_REPO_NAME}/pdf/${CI_REPO_NAME}.pdf
secrets: [ token ]
when:
event: push
branch: main