Skip to content

Commit 45bfa02

Browse files
committed
make it so can publish if workflow dispatch
1 parent 6212a9e commit 45bfa02

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ jobs:
100100
# This step only runs on actual tag pushes, not on manual workflow_dispatch runs
101101
# unless the 'skip_publish' input is explicitly false (which is not a default condition).
102102
- name: Publish Release
103-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
103+
if: |
104+
(github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) ||
105+
(github.event_name == 'workflow_dispatch' &&
106+
(github.event.inputs.skip_publish == 'false' || github.event.inputs.skip_publish == false))
104107
uses: softprops/action-gh-release@v1
105108
with:
106109
files: "$PKG_OUT/*.deb"

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ sudo act workflow_dispatch -j release \
5353
-C /home/tilde/Projects/bore \
5454
--pull=false \
5555
-P ubuntu-latest=catthehacker/ubuntu:full-24.04 \
56-
--container-options 'stack -v /tmp/bore-act-out:/__act_out' \
56+
--container-options 'stack -v /tmp/bore-act-out:/var/tmp/deb-pkg' \
5757
-e /tmp/act_event_release.json
5858
```
5959

0 commit comments

Comments
 (0)