Skip to content

Commit 0208cf8

Browse files
authored
Fixing go-releaser (#137)
* Prevents release from being skipped --------- Signed-off-by: Ethan Heilman <ethan.r.heilman@gmail.com>
1 parent 9d5af7a commit 0208cf8

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: CD
22

33
on:
4-
# Wait for the `CI` workflow to finish before starting it.
5-
workflow_run:
6-
workflows: [CI]
7-
types: [completed]
4+
release:
5+
types: [published]
86

97
permissions:
108
contents: write
@@ -13,8 +11,6 @@ permissions:
1311
jobs:
1412
goreleaser-release:
1513
name: Build and release opkssh with GoReleaser
16-
# Ensure the workflows successfully finished and the ref is a tag
17-
if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.workflow_run.conclusion == 'success' }}
1814
runs-on: ubuntu-latest
1915
steps:
2016
- name: Checkout

.goreleaser.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ builds:
2727

2828
# Make binaries available with the same naming format as before
2929
archives:
30-
- format: binary
30+
- formats: binary
3131
name_template: >-
3232
{{ .ProjectName }}-
3333
{{- if eq .Os "darwin" }}osx

0 commit comments

Comments
 (0)