forked from datastax/php-driver
-
-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (55 loc) · 1.49 KB
/
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
50
51
52
53
54
55
56
57
58
name: "Release"
permissions:
contents: write
on:
push:
tags:
- "v*"
jobs:
tag:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version_tag.outputs.tag }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Get Tag
if: startsWith(github.ref, 'refs/tags/v')
uses: olegtarasov/get-tag@v2.1.3
id: version_tag
with:
tagRegex: "v(.*)"
release:
runs-on: ubuntu-latest
needs: tag
steps:
- name: Release
uses: softprops/action-gh-release@v2
id: release
with:
make_latest: true
name: "v${{ needs.tag.outputs.version }}"
tag_name: "v${{ needs.tag.outputs.version }}"
generate_release_notes: true
append_body: true
prerelease: false
fail_on_unmatched_files: true
- name: "Generate release changelog"
uses: heinrichreimer/action-github-changelog-generator@v2.4
with:
token: ${{ secrets.GITHUB_TOKEN }}
author: true
releaseUrl: ${{ steps.release.outputs.url }}
<<<<<<< HEAD
issues: true
=======
issues: false
>>>>>>> d34657b4 (feature(ci): add release github actions)
pullRequests: true
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update CHANGELOG.md"
branch: v1.3.x
commit_options: '--no-verify --signoff'
file_pattern: CHANGELOG.md