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

Commit 0c8e817

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

1 file changed

Lines changed: 11 additions & 21 deletions

File tree

.github/workflows/main.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,16 @@
1-
# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
2-
3-
name: AutoRelease
4-
1+
name: Publish Release
52
on:
63
push:
7-
branches: [ main ]
8-
9-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
4+
tags:
5+
- 'v*'
106
jobs:
11-
# This workflow contains a single job called "build"
12-
release:
13-
# The type of runner that the job will run on
7+
build:
148
runs-on: ubuntu-latest
15-
16-
# Steps represent a sequence of tasks that will be executed as part of the job
179
steps:
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 }}
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

0 commit comments

Comments
 (0)