-
-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (45 loc) · 1.33 KB
/
release.yml
File metadata and controls
51 lines (45 loc) · 1.33 KB
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
name: release
on:
push:
branches:
- main
paths:
- '.github/workflows/release.yml'
- 'awscli/**'
- 'cloudfront_invalidate/**'
- 'iam_access_credentials/**'
- 'packages/**'
- 's3_sync/**'
- 'package.json'
- 'package-lock.json'
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
persist-credentials: false
- name: Determine next version
id: git-cliff
uses: orhun/git-cliff-action@c93ef52f3d0ddcdcc9bd5447d98d458a11cd4f72 # v4
with:
config: cliff.toml
args: --bump --unreleased
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create release
if: steps.git-cliff.outputs.version != '' && steps.git-cliff.outputs.content != ''
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2
with:
tag_name: ${{ steps.git-cliff.outputs.version }}
body: ${{ steps.git-cliff.outputs.content }}
make_latest: "true"
token: ${{ secrets.GITHUB_TOKEN }}