Skip to content

Commit 22cabca

Browse files
committed
Write conda-standalone version automatically in release notes
1 parent 60af6b4 commit 22cabca

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ env:
2525
# workaround for https://github.com/pyxem/pyxem/pull/1175
2626
TEST_DEPS: '"pytest<9" pytest-qt pytest-xdist pytest-rerunfailures pytest-mpl filelock'
2727
CONSTRUCTOR_VERSION: '3.14.0'
28+
CONDA_STANDALONE: '24.11.0'
2829

2930
defaults:
3031
run:
@@ -85,6 +86,14 @@ jobs:
8586
replace: ${{ env.CONSTRUCTOR_VERSION }}
8687
include: "RELEASE_TEXT.md" # Will match all RELEASE_TEXT.md files in any nested directory
8788

89+
- name: Find and Replace conda-standalone version in Release Notes
90+
uses: jacobtomlinson/gha-find-replace@f1069b438f125e5395d84d1c6fd3b559a7880cb5
91+
if: startsWith(github.ref, 'refs/tags/')
92+
with:
93+
find: "__CONDA_STANDALONE_VERSION__"
94+
replace: ${{ env.CONDA_STANDALONE }}
95+
include: "RELEASE_TEXT.md" # Will match all RELEASE_TEXT.md files in any nested directory
96+
8897
- name: Update packages list
8998
run: |
9099
python parse_list_libraries.py
@@ -172,7 +181,7 @@ jobs:
172181

173182
- name: Install constructor
174183
run: |
175-
conda install constructor==${{ env.CONSTRUCTOR_VERSION }}
184+
conda install constructor==${{ env.CONSTRUCTOR_VERSION }} conda-standalone==${{ env.CONDA_STANDALONE }}
176185
177186
- name: Conda info
178187
run: |

RELEASE_TEXT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ __INCLUDED_PACKAGES__
2424

2525
</details>
2626

27-
This distribution is built using [constructor __CONSTRUCTOR_VERSION__](https://conda.github.io/constructor).
27+
This distribution is built using [constructor __CONSTRUCTOR_VERSION__](https://conda.github.io/constructor) and [conda-standalone __CONDA_STANDALONE_VERSION__](https://github.com/conda/conda-standalone).
2828

2929
## Portable (Windows only)
3030
The portable distribution is based on the [WinPython](https://winpython.github.io) distribution and is a self-extracting archive. Running the installer will install the distribution in the current directory. Since the distribution is portable, it can be moved to any directory or run from an external drive.

0 commit comments

Comments
 (0)