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

Commit

Permalink
Only run release automation when it's published
Browse files Browse the repository at this point in the history
Also provides a better label for building and uploading assets.

Signed-off-by: Michael Smith <michael.smith@puppet.com>
  • Loading branch information
MikaelSmith committed Apr 1, 2020
1 parent 9336cf9 commit 00ae27b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Release Wash

on: release
on:
release:
types: [published]

jobs:
build-deploy:
name: Build and upload release assets
runs-on: ubuntu-latest
steps:
- name: Set up Go
Expand Down Expand Up @@ -36,7 +39,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Update
if: github.event.action == 'published'
run: |
git clone https://${GITHUB_TOKEN}@github.com/puppetlabs/homebrew-puppet
tag=${GITHUB_REF#refs/tags/}
Expand Down

0 comments on commit 00ae27b

Please sign in to comment.