Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit e2ebf8c

Browse files
committed
Update main.yml
1 parent 0c8e817 commit e2ebf8c

1 file changed

Lines changed: 21 additions & 11 deletions

File tree

.github/workflows/main.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1-
name: Publish Release
1+
# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
2+
3+
name: AutoRelease
4+
25
on:
36
push:
4-
tags:
5-
- 'v*'
7+
branches: [ main ]
8+
9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
610
jobs:
7-
build:
11+
# This workflow contains a single job called "build"
12+
release:
13+
# The type of runner that the job will run on
814
runs-on: ubuntu-latest
15+
16+
# Steps represent a sequence of tasks that will be executed as part of the job
917
steps:
10-
- uses: actions/checkout@v3
11-
- name: Create a Release
12-
uses: elgohr/Github-Release-Action@v5
13-
env:
14-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15-
with:
16-
title: MyReleaseMessage
18+
- uses: actions/checkout@v2
19+
- uses: CupOfTea696/gh-action-auto-release@v1.0.2
20+
with:
21+
title: "Release: $version"
22+
tag: "v$semver"
23+
draft: false
24+
regex: "/^Release: #{semver}$/i"
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)