This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
discord-notifier/.github/workflows/version.yml

29 lines
760 B
YAML
Raw Normal View History

2020-09-13 07:26:44 +02:00
name: Version & Release
on:
push:
branches:
- master
jobs:
CheckVersion:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Run Auto-Semver
id: semver
2020-09-13 07:41:36 +02:00
uses: RightBrain-Networks/semver-action@master
2020-09-13 07:26:44 +02: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:
tag_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
release_name: ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
body: Release Version ${{ steps.semver.outputs.SEMVER_NEW_VERSION }}
draft: false
2020-09-13 07:41:36 +02:00
prerelease: false