Skip to content

Commit 0e45ad8

Browse files
authored
Update workflow (#5)
1 parent abf4c58 commit 0e45ad8

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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

metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title:
33
- type: main
44
text: Вопросы для подготовки к Python Developer интервью
55
- type: edition
6-
text: build 1
6+
text: dev-build
77
author:
88
- yakimka <https://github.com/yakimka>
99
- pavlenk0 <https://github.com/pavlenk0>

questions.epub

-864 KB
Binary file not shown.

0 commit comments

Comments
 (0)