-
Notifications
You must be signed in to change notification settings - Fork 32
27 lines (23 loc) · 886 Bytes
/
tag-to-release.yml
File metadata and controls
27 lines (23 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Create Release on Tag
on:
push:
tags:
- '*' # Triggers on all tags. You can customize this pattern.
jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest
steps:
# Step 1: Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Step 2: Create the GitHub release
- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Default GitHub token
with:
tag_name: ${{ github.ref_name }} # The tag name that triggered the workflow
release_name: Release ${{ github.ref_name }}
draft: false # Set to true if you want the release to be a draft
prerelease: false # Set to true if the tag is for a pre-release