Skip to content

Commit 31659c3

Browse files
committed
Added release of PDF to GitHub actions
1 parent 65e17da commit 31659c3

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/adoc-to-pdf.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
name: AsciiDoc to PDF
22

3-
on:
4-
push:
5-
branches:
6-
- master
3+
on: push
74

85
jobs:
96
asciidoc_to_pdf:
@@ -24,8 +21,15 @@ jobs:
2421
run: asciidoctor-pdf README.adoc
2522
- name: Rename generated PDF
2623
run: mv README.pdf python2nodemcu.pdf
27-
- name: Publish PDF
24+
- name: Publish PDF to Release Artifacts
2825
uses: actions/upload-artifact@master
2926
with:
3027
name: python2nodemcu
3128
path: python2nodemcu.pdf
29+
- name: Publish PDF to Release
30+
uses: softprops/action-gh-release@v1
31+
if: startsWith(github.ref, 'refs/tags/')
32+
with:
33+
files: python2nodemcu.pdf
34+
env:
35+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)