Skip to content

cut release 1.2.0-DEV (#2136) #2

cut release 1.2.0-DEV (#2136)

cut release 1.2.0-DEV (#2136) #2

Workflow file for this run

# This workflow is managed by https://github.com/raft-tech/df-gh-templates. All attempts to edit outside of df-gh-templates will be futile.
name: Tag & Release
on:
push:
branches:
- dev
paths:
- 'VERSION'
jobs:
release:
name: Create Tag & Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get TAG var
run: |
MAJOR=$(grep 'MAJOR' VERSION | cut -d '=' -f 2)
MINOR=$(grep 'MINOR' VERSION | cut -d '=' -f 2)
PATCH=$(grep 'PATCH' VERSION | cut -d '=' -f 2)
ADDOPTS=$(grep 'ADDOPTS' VERSION | cut -d '=' -f 2)
echo "TAG=${MAJOR}.${MINOR}.${PATCH}-${ADDOPTS}" >> $GITHUB_ENV
- name: Create Release
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
tag: v${{ env.TAG }}