mirror of
https://github.com/yakimka/python_interview_questions.git
synced 2025-12-16 19:17:04 +03:00
Update workflow (#5)
This commit is contained in:
18
.github/workflows/ci-workflow.yml
vendored
18
.github/workflows/ci-workflow.yml
vendored
@@ -16,21 +16,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Create epub
|
|
||||||
uses: docker://pandoc/core:2.14
|
|
||||||
with:
|
|
||||||
args: --toc --toc-depth=6 -o questions.epub metadata.txt questions.md
|
|
||||||
|
|
||||||
- name: Get TAG
|
- name: Get TAG
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||||
- name: Write build number
|
- name: Write build number
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
run: sed -i "s/build 1/$TAG/g" metadata.txt
|
run: sed -i "s/dev-build/$TAG/g" metadata.txt
|
||||||
- name: Test
|
- name: Create epub
|
||||||
run: cat metadata.txt
|
uses: docker://pandoc/core:2.14
|
||||||
|
with:
|
||||||
|
args: --toc --toc-depth=6 -o questions_${{ env.TAG }}.epub metadata.txt questions.md
|
||||||
|
|
||||||
|
- name: Print metadata.txt
|
||||||
|
run: ls -lh && cat metadata.txt
|
||||||
- name: Release
|
- name: Release
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: questions.epub
|
files: questions_${{ env.TAG }}.epub
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title:
|
|||||||
- type: main
|
- type: main
|
||||||
text: Вопросы для подготовки к Python Developer интервью
|
text: Вопросы для подготовки к Python Developer интервью
|
||||||
- type: edition
|
- type: edition
|
||||||
text: build 1
|
text: dev-build
|
||||||
author:
|
author:
|
||||||
- yakimka <https://github.com/yakimka>
|
- yakimka <https://github.com/yakimka>
|
||||||
- pavlenk0 <https://github.com/pavlenk0>
|
- pavlenk0 <https://github.com/pavlenk0>
|
||||||
|
|||||||
BIN
questions.epub
BIN
questions.epub
Binary file not shown.
Reference in New Issue
Block a user