2019-12-21 02:30:29 +01:00
|
|
|
name: Version & Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- develop
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
CheckVersion:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: rightbrainnetworks/auto-semver
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v1
|
2020-02-01 20:23:16 +01:00
|
|
|
- name: Run Auto-Semver
|
2019-12-21 02:30:29 +01:00
|
|
|
id: semver
|
2020-02-01 20:23:16 +01:00
|
|
|
uses: RightBrain-Networks/semver-action@1.0.0
|
2019-12-21 02:30:29 +01:00
|
|
|
- name: Create Release
|
|
|
|
id: create_release
|
|
|
|
uses: actions/create-release@v1
|
|
|
|
if: steps['semver']['outputs']['RETURN_STATUS'] == '0'
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2020-02-01 20:23:16 +01:00
|
|
|
tag_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
|
|
|
release_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
2019-12-21 02:30:29 +01:00
|
|
|
body: |
|
|
|
|
Glitch In The System v${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
|
|
|
|
draft: false
|
|
|
|
prerelease: false
|