Skip to content

Commit 735cdc5

Browse files
author
nazarfil
committed
extract version
1 parent 4c1c454 commit 735cdc5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,18 @@ jobs:
5757
- name: Install conda tools
5858
run: conda install -y conda-build anaconda-client
5959

60+
- name: Extract version from pyproject.toml
61+
id: extract_version
62+
working-directory: .
63+
run: |
64+
VERSION=$(awk -F\" '/^version =/ { print $2; exit }' pyproject.toml)
65+
echo "VERSION=$VERSION" >> $GITHUB_ENV
66+
echo "Extracted version: $VERSION"
67+
6068
- name: Dry-run conda build
6169
shell: bash -l {0}
6270
working-directory: recipe
71+
env:
72+
VERSION: ${{ env.VERSION }}
6373
run: |
6474
conda build . --channel conda-forge --channel bioconda

0 commit comments

Comments
 (0)