File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -16,21 +16,21 @@ jobs:
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@v2
19- - name : Create epub
20- uses : docker://pandoc/core:2.14
21- with :
22- args : --toc --toc-depth=6 -o questions.epub metadata.txt questions.md
23-
2419 - name : Get TAG
2520 if : startsWith(github.ref, 'refs/tags/')
2621 run : echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2722 - name : Write build number
2823 if : startsWith(github.ref, 'refs/tags/')
29- run : sed -i "s/build 1/$TAG/g" metadata.txt
30- - name : Test
31- run : cat metadata.txt
24+ run : sed -i "s/dev-build/$TAG/g" metadata.txt
25+ - name : Create epub
26+ uses : docker://pandoc/core:2.14
27+ with :
28+ args : --toc --toc-depth=6 -o questions_${{ env.TAG }}.epub metadata.txt questions.md
29+
30+ - name : Print metadata.txt
31+ run : ls -lh && cat metadata.txt
3232 - name : Release
3333 if : startsWith(github.ref, 'refs/tags/')
3434 uses : softprops/action-gh-release@v1
3535 with :
36- files : questions .epub
36+ files : questions_${{ env.TAG }} .epub
Original file line number Diff line number Diff line change 33- type: main
44 text: Вопросы для подготовки к Python Developer интервью
55- type: edition
6- text: build 1
6+ text: dev- build
77author:
88- yakimka <https://github.com/yakimka>
99- pavlenk0 <https://github.com/pavlenk0>
You can’t perform that action at this time.
0 commit comments