Implement versioning ADR (#124)

* Implement versioning ADR

* Update to handle tags that contain -rc
This commit is contained in:
Chad Roberts
2024-11-15 09:36:48 -05:00
committed by GitHub
parent 74cd23ce3f
commit dce7e4650b
4 changed files with 38 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
"github>rancher/renovate-config#release"
],
"baseBranches": [
"master"
"main", "release/v0.3", "release/v0.4", "release/v0.5"
],
"prHourlyLimit": 2
}

23
.github/workflows/release.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name : Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Create release on Github
run: |
if [[ "${{ github.ref_name }}" == *-rc* ]]; then
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes --prerelease
else
gh --repo "${{ github.repository }}" release create ${{ github.ref_name }} --verify-tag --generate-notes
fi