Skip to content

Commit

Permalink
Add YML file for release version (#1005)
Browse files Browse the repository at this point in the history
  • Loading branch information
epassaro authored and wkerzendorf committed Jan 17, 2020
1 parent 51b3f59 commit 5c90622
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release a new TARDIS version

on:
push:
branches:
- master

jobs:
release:

name: Main job
runs-on: ubuntu-latest
steps:
# Every step starts with '-'
- uses: actions/checkout@v2

- name: Create TARDIS environment
uses: goanpeca/[email protected]
with:
auto-update-conda: True
activate-environment: tardis
environment-file: tardis_env3.yml
auto-activate-base: False

- name: Build and install TARDIS
shell: bash -l {0}
run: |
python setup.py install
- name: Get TARDIS version number
shell: bash -l {0}
run: |
# This is the only way I found to share variables across steps
echo "::set-env name=VERSION::$(python -c 'import tardis; print(tardis.__version__)')"
- name: Automatic Releases
uses: marvinpinto/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ env.VERSION }}
prerelease: True
title: ${{ env.VERSION }}

0 comments on commit 5c90622

Please sign in to comment.