-
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.21 KB
/
auto-release.yml
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Auto Tag and Release
on:
workflow_dispatch:
pull_request:
types: [closed]
branches:
- main
paths-ignore:
- '.github/**'
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v4
with:
application_id: ${{ vars.FUELVIEWS_BOT_APP_ID}}
application_private_key: ${{ secrets.FUELVIEWS_BOT_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: 'main'
fetch-depth: '0'
- name: Bump version and push tag
id: bump_version
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
DEFAULT_BUMP: patch
WITH_V: true
RELEASE_BRANCHES: main
- name: Release
id: release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
with:
tag_name: ${{ steps.bump_version.outputs.new_tag }}
generate_release_notes: true