Skip to content

Commit b349ec4

Browse files
authored
Update auto_Release.yml
1 parent 6d8b6e4 commit b349ec4

1 file changed

Lines changed: 23 additions & 17 deletions

File tree

.github/workflows/auto_Release.yml

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,29 @@
1-
name: Bump version
1+
name: github action tag release
2+
23
on:
34
push:
45
branches:
5-
- master # master branch로 push될 때 아래 action이 실행된다.
6+
- master
7+
68
jobs:
7-
build:
9+
setup-build-deploy:
10+
name: Setup, Build, and Deploy
811
runs-on: ubuntu-latest
12+
permissions:
13+
packages: write
14+
contents: write
15+
id-token: write
16+
917
steps:
10-
- uses: actions/checkout@v2
11-
- name: Bump version and push tag
12-
id: tag_version
13-
uses: mathieudutour/github-tag-action@v5.5 # 가져다 쓸 auto tagging 프로그램
14-
with:
15-
github_token: ${{ secrets.GITHUB_TOKEN }} # secrets.GITHUB_TOKEN 는 자동생성됨
16-
- name: Create a GitHub release
17-
uses: actions/create-release@v1
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20-
with:
21-
tag_name: ${{ steps.tag_version.outputs.new_tag }}
22-
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
23-
body: ${{ steps.tag_version.outputs.changelog }}
18+
- name: Bump version and push tag
19+
id: tag_version
20+
uses: mathieudutour/github-tag-action@v6.1
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
24+
- name: Create a GitHub release
25+
uses: ncipollo/release-action@v1
26+
with:
27+
tag: ${{ steps.tag_version.outputs.new_tag }}
28+
name: Release ${{ steps.tag_version.outputs.new_tag }}
29+
body: ${{ steps.tag_version.outputs.changelog }}

0 commit comments

Comments
 (0)