-
-
Notifications
You must be signed in to change notification settings - Fork 4
33 lines (33 loc) · 1.09 KB
/
release.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
name: Production Release
on:
push:
branches:
- main
jobs:
# Bump the membrane version
version_bump:
name: Bump Version and Create Release
runs-on: ubuntu-latest
outputs:
version_id: ${{ steps.tag_version.outputs.new_tag }}
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
# Use GITHUB_TOKEN here to prevent further workflows
# generated on 'tag' action
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
id: create_release
uses: actions/create-release@v1
env:
# Use NITRIC_BOT_TOKEN here to
# trigger release 'published' workflows
GITHUB_TOKEN: ${{ secrets.NITRIC_BOT_TOKEN }}
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
release_name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}