Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit 00ae27b

Browse files
committed
Only run release automation when it's published
Also provides a better label for building and uploading assets. Signed-off-by: Michael Smith <[email protected]>
1 parent 9336cf9 commit 00ae27b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
name: Release Wash
22

3-
on: release
3+
on:
4+
release:
5+
types: [published]
46

57
jobs:
68
build-deploy:
9+
name: Build and upload release assets
710
runs-on: ubuntu-latest
811
steps:
912
- name: Set up Go
@@ -36,7 +39,6 @@ jobs:
3639
runs-on: ubuntu-latest
3740
steps:
3841
- name: Update
39-
if: github.event.action == 'published'
4042
run: |
4143
git clone https://${GITHUB_TOKEN}@github.com/puppetlabs/homebrew-puppet
4244
tag=${GITHUB_REF#refs/tags/}

0 commit comments

Comments
 (0)