Skip to content

Merge branch 'feature/eema1-NRL-474-authorValidationDocumentationChan… #575

Merge branch 'feature/eema1-NRL-474-authorValidationDocumentationChan…

Merge branch 'feature/eema1-NRL-474-authorValidationDocumentationChan… #575

name: Create Release
on: push
jobs:
create_release:
name: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Upgrade python pip
run: python -m pip install --upgrade pip
- name: Install git
run: pip install gitpython
- name: Install semver
run: pip install semver
- name: Set SPEC_VERSION env var
run: echo ::set-env name=SPEC_VERSION::$(python scripts/calculate_version.py)
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Create release (master only)
id: create-release
if: github.ref == 'refs/heads/master'
uses: actions/create-release@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.SPEC_VERSION }}
release_name: ${{ env.SPEC_VERSION }}