Skip to content

Commit 3062ca4

Browse files
authored
chore: add tag checks; remove auto dispatching
1 parent d0dd04b commit 3062ca4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-cheatsheet.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ on:
55
push:
66
branches:
77
- master
8-
paths:
9-
- 'CHEATSHEET.md'
8+
tags:
9+
- '*'
1010

1111
jobs:
1212
build-cheatsheet-pdf:
@@ -29,6 +29,7 @@ jobs:
2929
pandoc CHEATSHEET.md -o CHEATSHEET.pdf
3030
3131
- name: create release page and upload artifact
32+
if: github.ref_type == 'tag'
3233
uses: softprops/action-gh-release@v2
3334
with:
3435
files: |

0 commit comments

Comments
 (0)