Skip to content

Commit a520d9b

Browse files
authored
Update main.yml
1 parent 2c7d5e0 commit a520d9b

File tree

1 file changed

+15
-20
lines changed

1 file changed

+15
-20
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1-
# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action.
1+
name: Main
22

3-
name: AutoRelease
3+
on: push
44

5-
on:
6-
push:
7-
branches: [ main ]
8-
9-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
105
jobs:
11-
# This workflow contains a single job called "build"
12-
release:
13-
# The type of runner that the job will run on
6+
build:
147
runs-on: ubuntu-latest
15-
16-
# Steps represent a sequence of tasks that will be executed as part of the job
178
steps:
18-
- uses: actions/checkout@v3
19-
- uses: CupOfTea696/gh-action-auto-release@v1.0.2
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Build
12+
run: echo ${{ github.sha }} > Release.txt
13+
- name: Test
14+
run: cat Release.txt
15+
- name: Release
16+
uses: softprops/action-gh-release@v2
17+
if: github.ref_type == 'tag'
2018
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 }}
19+
files: |
20+
Release.txt
21+
LICENSE

0 commit comments

Comments
 (0)