-
Notifications
You must be signed in to change notification settings - Fork 184
44 lines (40 loc) · 1.14 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
name: Create new release
on:
push:
branches:
- "master"
paths:
- "build/matrix/latest.json"
workflow_dispatch:
jobs:
create_tag:
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.tag-version.outputs.new_tag }}
steps:
- uses: actions/[email protected]
- id: set-version
run: |
NEW_VERSION=$(jq '.r_version[-1]' -r build/matrix/latest.json)
echo ::set-output name=newversion::"${NEW_VERSION}"
echo "${NEW_VERSION}"
- name: Bump version and push tag
id: tag-version
uses: mathieudutour/github-tag-action@v5
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
custom_tag: ${{ steps.set-version.outputs.newversion }}
tag_prefix: "R"
create_release:
needs: create_tag
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Create Release
uses: ncipollo/release-action@v1
with:
tag: ${{ needs.create_tag.outputs.tag }}
generateReleaseNotes: true
allowUpdates: false
token: ${{ secrets.GITHUB_TOKEN }}