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

Commit dcdc519

Browse files
authored
Update main.yml
1 parent 9bdb684 commit dcdc519

1 file changed

Lines changed: 14 additions & 15 deletions

File tree

.github/workflows/main.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: autorelease
1+
# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
2+
3+
name: AutoRelease
24

35
on:
46
push:
5-
branches: [ main ] # support both master and main branch names
6-
tags:
7-
- 'v*' # this will trigger on any tag that starts with 'v'
7+
branches: [ main ]
88

9+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
910
jobs:
11+
# This workflow contains a single job called "build"
1012
release:
13+
# The type of runner that the job will run on
1114
runs-on: ubuntu-latest
12-
15+
16+
# Steps represent a sequence of tasks that will be executed as part of the job
1317
steps:
14-
- uses: actions/checkout@v3 # updated to newer version
15-
with:
16-
fetch-depth: 0 # this ensures all tags and history are available
17-
18-
- name: create release
19-
uses: cupoftea696/gh-action-auto-release@v1.0.2 # updated to newer version
18+
- uses: actions/checkout@v2
19+
- uses: CupOfTea696/gh-action-auto-release@v1.0.2
2020
with:
21-
title: "release: $version"
21+
title: "Release: $version"
2222
tag: "v$semver"
2323
draft: false
24-
regex: "/^release: v?#{semver}$/i" # more flexible regex pattern
25-
prereleaseregex: "/^release: v?#{semver}-.*$/i"
24+
regex: "/^Release: #{semver}$/i"
2625
env:
27-
github_token: ${{ secrets.github_token }}
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)