mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-06-24 05:47:03 +00:00
Add release.yaml for 0.4 branch (#126)
This commit is contained in:
parent
70ff2a6f5f
commit
85c89f8b7b
23
.github/workflows/release.yaml
vendored
Normal file
23
.github/workflows/release.yaml
vendored
Normal 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
|
Loading…
Reference in New Issue
Block a user