Post-release 2024.07.07 #614
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more information about TARDIS pipelines, please refer to: | |
# | |
# https://tardis-sn.github.io/tardis/development/continuous_integration.html | |
name: release | |
on: | |
pull_request_target: | |
branches: [master] | |
types: [closed] | |
workflow_dispatch: # manual trigger | |
jobs: | |
create: | |
if: github.event_name == 'workflow_dispatch' || | |
(startsWith(github.head_ref, 'pre-release-20') && github.event.pull_request.merged == true) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Install setuptools_scm | |
run: pip install 'setuptools_scm<7' | |
- name: Show current version | |
run: python .ci-helpers/get_current_version.py | |
- name: Get next version | |
run: | | |
python .ci-helpers/get_next_version.py | |
echo "NEW_TAG=$(python .ci-helpers/get_next_version.py)" >> $GITHUB_ENV | |
- name: Create new release | |
uses: softprops/action-gh-release@v1 | |
with: | |
token: ${{ secrets.BOT_TOKEN }} | |
name: TARDIS v${{ env.NEW_TAG}} | |
tag_name: release-${{ env.NEW_TAG }} | |
prerelease: false | |
body: | | |
This release has been created automatically by the TARDIS continuous delivery pipeline. | |
A complete list of changes for this release is available at [CHANGELOG.md](https://github.com/tardis-sn/tardis/blob/master/CHANGELOG.md). | |
files: | | |
conda-linux-64.lock | |
conda-osx-64.lock | |
conda-lock.yml | |
fail_on_unmatched_files: false |