-
Notifications
You must be signed in to change notification settings - Fork 98
Conversation
The original Edit: Done (12dfa51). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! I didn't know that preparing brew bottle
was so easy, I previously had an impression that's too hard to maintain. Now there's a great example for a workflow setup 🙂
@MaxDesiatov I know, right? Homebrew is centralized by default, and any documentation I found about the process was specific to their Brew Test Bot service. Back when it launched in 2013, virtualized macOS instances were few and far between, so I can see why that was necessary. But now in 2020 we have GitHub Actions and other infrastructure to stand that up ourselves. I'm not entirely sure when Homebrew started supporting this workflow, but I think this pattern could really start to catch on. |
|
||
on: | ||
release: | ||
types: [created, published] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know what's the difference between these two? It doesn't seem to be documented in the trigger events doc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure, but GitHub's UI copy gives us some clue. On the releases page, the button says "Draft a new release". On that page, there are two buttons, "Publish release" or "Save as draft". The former likely corresponds to a published
event, and the latter may trigger a created
step.
Here, we're creating a release through the github/create-release
action, whose name implies a created
event, but I vaguely recall triggering published
instead. It's really too bad that there's no easy way to do a dry run of this.
For the release of 1.0.0-beta.5, I was excited to test out the automated release workflows put in place by #190. Unfortunately, things didn't work exactly as expected. Although a release was created in response to pushing a tag, the deploy workflow didn't trigger in response to that release being created. At first I thought it was an issue with the event type, but then I saw this in the GitHub Actions documentation:
This PR passes the
GH_PERSONAL_ACCESS_TOKEN
asGITHUB_TOKEN
for theactions/create-release
action, which should allow one workflow to trigger the other.