|
51 | 51 | run: | |
52 | 52 | echo ${{ env.VERSION }} |
53 | 53 |
|
| 54 | + - uses: conda-incubator/setup-miniconda@v3 |
| 55 | + with: |
| 56 | + conda-remove-defaults: "true" |
| 57 | + |
| 58 | + - name: Install constructor |
| 59 | + run: | |
| 60 | + # Constructor is needed to parse the list of included packages |
| 61 | + conda install constructor==${{ env.CONSTRUCTOR_VERSION }} |
| 62 | +
|
| 63 | + - name: Conda info |
| 64 | + run: | |
| 65 | + conda info |
| 66 | + conda list |
| 67 | +
|
54 | 68 | - name: Find and Replace Version in Release Notes |
55 | 69 | uses: jacobtomlinson/gha-find-replace@f1069b438f125e5395d84d1c6fd3b559a7880cb5 |
56 | 70 | if: startsWith(github.ref, 'refs/tags/') |
|
67 | 81 | replace: ${{ env.CONSTRUCTOR_VERSION }} |
68 | 82 | include: "RELEASE_TEXT.md" # Will match all RELEASE_TEXT.md files in any nested directory |
69 | 83 |
|
| 84 | + - name: Update packages list |
| 85 | + run: | |
| 86 | + python parse_list_libraries.py |
| 87 | + echo "List of libraries and software" |
| 88 | + echo "==============================" |
| 89 | + cat ./docs/specs.rst |
| 90 | +
|
| 91 | + - name: Save `docs/specs.rst` content as environment variable |
| 92 | + run: | |
| 93 | + echo "INCLUDED_PACKAGES<<EOF" >> $GITHUB_ENV |
| 94 | + cat ./docs/specs.rst >> $GITHUB_ENV |
| 95 | + echo "EOF" >> $GITHUB_ENV |
| 96 | +
|
| 97 | + - name: Find and Replace included packages in Release Notes |
| 98 | + uses: jacobtomlinson/gha-find-replace@f1069b438f125e5395d84d1c6fd3b559a7880cb5 |
| 99 | + if: startsWith(github.ref, 'refs/tags/') |
| 100 | + with: |
| 101 | + find: "__INCLUDED_PACKAGES__" |
| 102 | + replace: ${{ env.INCLUDED_PACKAGES }} |
| 103 | + include: "RELEASE_TEXT.md" # Will match all RELEASE_TEXT.md files in any nested directory |
| 104 | + |
70 | 105 | - name: Create Release |
71 | 106 | if: startsWith(github.ref, 'refs/tags/') |
72 | 107 | id: create_release |
@@ -133,9 +168,7 @@ jobs: |
133 | 168 | - uses: actions/checkout@v6 |
134 | 169 | - uses: conda-incubator/setup-miniconda@v3 |
135 | 170 | with: |
136 | | - miniforge-version: latest |
137 | | - channels: conda-forge |
138 | | - channel-priority: strict |
| 171 | + conda-remove-defaults: "true" |
139 | 172 |
|
140 | 173 | - name: Install constructor |
141 | 174 | run: | |
|
0 commit comments