-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (35 loc) · 1.1 KB
/
release_please.yaml
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
name: "Create tag & release"
# on:
# push:
# branches:
# - master
on:
pull_request:
types: [closed]
branches:
- master
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3.2.0
- name: Run read-yaml action
id: yaml-data
uses: jbutcher5/read-yaml@main # You may wish to replace main with a version tag such as '1.6' etc.
with:
file: "./config/config.yaml"
key-path: '["version"]' # Access the runs key then the using key and retuns the value.
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.yaml-data.outputs.data }}
default_prerelease_bump: false
tag_prefix: ""
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: ${{ steps.yaml-data.outputs.data }}