mirror of
https://github.com/chenxiaolong/avbroot.git
synced 2026-07-03 14:05:11 +02:00
710c57ec77
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
36 lines
1009 B
YAML
36 lines
1009 B
YAML
name: Github Release
|
|
on:
|
|
push:
|
|
# Uncomment to test against a branch
|
|
#branches:
|
|
# - ci
|
|
tags:
|
|
- 'v*'
|
|
jobs:
|
|
create_release:
|
|
name: Create Github release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Get version from tag
|
|
id: get_version
|
|
run: |
|
|
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
|
|
version=${GITHUB_REF#refs/tags/v}
|
|
else
|
|
version=0.0.0.${GITHUB_REF#refs/heads/}
|
|
fi
|
|
echo "version=${version}" >> "${GITHUB_OUTPUT}"
|
|
|
|
- name: Check out repository
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Create release
|
|
uses: softprops/action-gh-release@718ea10b132b3b2eba29c1007bb80653f286566b # v3.0.1
|
|
with:
|
|
tag_name: v${{ steps.get_version.outputs.version }}
|
|
name: Version ${{ steps.get_version.outputs.version }}
|
|
body_path: RELEASE.md
|
|
draft: true
|