Skip to content

Automated Github releases with Github Actions! #46

Closed
discentem wants to merge 25 commits intogoogle:masterfrom
discentem:master
Closed

Automated Github releases with Github Actions! #46
discentem wants to merge 25 commits intogoogle:masterfrom
discentem:master

Conversation

@discentem
Copy link
Contributor

@discentem discentem commented Apr 23, 2021

Apologies for the multiple false starts! I was doing a bunch of testing on my fork and a few times I accidentally PRed against google/cabbie instead of discentem/cabbie.

So what does this PR actually do?

  • Adds a Github Action to make sure every PR builds in build_pr.yml
  • Adds a second Github Action to automatically build and release cabbie.exe on every push to master in build_release.yml. Note: every change is considered a minor release based on the minor_pattern regex I wrote. I figured this was the best way to automatically version. See https://github.com/discentem/cabbie/blob/master/.github/workflows/build_release.yml#L32 and https://github.com/PaulHatch/semantic-version#usage for more context. There are many ways the automatic versioning could work and I'm happy to make changes as desired.
  • Adds a third Github Action to build and release cabbie.exe if any tag is manually created. I figured this is useful if you want to manually release with a manually created version number.

Please let know if you have feedback or questions! Thanks!

@discentem
Copy link
Contributor Author

I've just realized something, which may be tricky to figure out: we probably should not build a release if only readme.md changes. And there may be other files we want to ignore as well. See PaulHatch/semantic-version#31 for discussion about excluding files.

Please let me know if I should exclude the readme or any other files.

discentem added 8 commits May 4, 2021 21:09
Old:

```
PS C:\Users\brandon_kurtz> C:\Users\brandon_kurtz\Downloads\cabbie.exe install
Host has existing updates pending reboot.
No reboot needed.
```

New:

```
PS C:\Windows\system32> C:\Users\brandon_kurtz\Desktop\cabbie-upstream.exe install
Host has existing updates pending reboot.
Please reboot to finalize the update installation.
```
Old:

Host has existing updates pending reboot.
No reboot needed.

New:

Host has existing updates pending reboot.
Please reboot to finalize the update installation.
@TsekNet
Copy link

TsekNet commented May 5, 2021

Just wondering - has https://goreleaser.com been considered? Seems like goreleaser would accomplish what you're trying to do in this PR, in a potentially simpler fashion.

@discentem
Copy link
Contributor Author

TIL about https://goreleaser.com. I looked over the goreleaser docs quickly but I'm not sure if I'll be able to work on a goreleaser version of this any time soon. If you'd prefer to the goreleaser direction, feel free to close this though.

@discentem discentem closed this May 7, 2021
copybara-service bot pushed a commit that referenced this pull request Dec 30, 2021
…utput when new releases are created

- This is meant to address #46 by @discentem
- See https://github.com/TsekNet/cabbie/releases/tag/v1.0.3 for an example.

PiperOrigin-RevId: 418932715
copybara-service bot pushed a commit that referenced this pull request Dec 30, 2021
…utput when new releases are created

- This is meant to address #46 by @discentem
- See https://github.com/TsekNet/cabbie/releases/tag/v1.0.3 for an example.

PiperOrigin-RevId: 418932715
copybara-service bot pushed a commit that referenced this pull request Dec 30, 2021
…utput when new releases are created

- This is meant to address #46 by @discentem
- See https://github.com/TsekNet/cabbie/releases/tag/v1.0.3 for an example.

PiperOrigin-RevId: 418953377
@TsekNet
Copy link

TsekNet commented Dec 30, 2021

FYI @discentem - Cabbie can now be downloaded via releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants