From 4d59463930f9bcdf6d9474c7cb59945287a57479 Mon Sep 17 00:00:00 2001 From: Adam Chalkley Date: Thu, 20 Jul 2023 06:52:57 -0500 Subject: [PATCH] Add initial automated release build workflow 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 --- .github/workflows/release-build.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release-build.yml diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml new file mode 100644 index 00000000..52bef69a --- /dev/null +++ b/.github/workflows/release-build.yml @@ -0,0 +1,21 @@ +# 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