Skip to content

Commit

Permalink
Add initial automated release build workflow
Browse files Browse the repository at this point in the history
Provide workflow used to automate the creation of GitHub releases upon
pushing a tag. The "upstream" workflow imported by this one applies
conditional logic (based on tag name) to determine whether a stable or
pre-release GitHub release is created.

By default, release assets are generated and provided by the release.
Library projects explicitly forgo the explicit generation of release
assets.

refs atc0005/todo#33
refs atc0005/todo#45
refs atc0005/todo#65
refs atc0005/shared-project-resources#141
  • Loading branch information
atc0005 committed Jul 20, 2023
1 parent fbabfce commit d21a268
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See LICENSE file in this repo for license details.

name: Release Build

on:
push:
tags:
# Match any semver tag, rely on the imported workflow to apply necessary
# logic to separate "stable" release builds from "prerelease" builds.
- "v[0-9]+.[0-9]+.*"

jobs:
release_build:
name: Generate release build

# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
permissions:
contents: write
discussions: write

uses: atc0005/shared-project-resources/.github/workflows/release-build.yml@master
with:
# NOTE: Library projects such as atc0005/go-nagios or
# atc0005/go-teams-notify explicitly set this value to false to avoid
# generating release assets as part of creating an automated release
# upon pushing a tag.
#
# See also:
#
# - https://github.com/atc0005/shared-project-resources/pull/141
#
generate-assets: false

0 comments on commit d21a268

Please sign in to comment.