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:
16
16
steps :
17
17
- name : Checkout
18
18
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
-
24
19
- name : Get TAG
25
20
if : startsWith(github.ref, 'refs/tags/')
26
21
run : echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
27
22
- name : Write build number
28
23
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
32
32
- name : Release
33
33
if : startsWith(github.ref, 'refs/tags/')
34
34
uses : softprops/action-gh-release@v1
35
35
with :
36
- files : questions .epub
36
+ files : questions_${{ env.TAG }} .epub
Original file line number Diff line number Diff line change 3
3
- type: main
4
4
text: Вопросы для подготовки к Python Developer интервью
5
5
- type: edition
6
- text: build 1
6
+ text: dev- build
7
7
author:
8
8
- yakimka <https://github.com/yakimka>
9
9
- pavlenk0 <https://github.com/pavlenk0>
You can’t perform that action at this time.
0 commit comments