Skip to content

Commit

Permalink
✨ 增加适用于 2.x 的 Github Actions 的自动 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxi-scut committed Nov 22, 2024
1 parent 23ed500 commit 74dea77
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-2.x.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI Create Release

on:
push:
tags:
- '2.*'
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Extract version
id: extract_version
run: |
version=${GITHUB_REF#refs/tags/}
version_number=${version//./}
echo "::set-output name=version_number::$version_number"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
RMVL ${{ github.ref }} has been released
:hammer_and_wrench: ChangeLog is [hear](https://github.com/cv-rmvl/rmvl/wiki/ChangeLog#version-${{ steps.extract_version.outputs.version_number }})
draft: false
prerelease: false

0 comments on commit 74dea77

Please sign in to comment.