Skip to content

Commit 5565db3

Browse files
Update recipe version and SHA256 in pixi.yml
Add step to update recipe version and SHA256 in workflow
1 parent fe1a497 commit 5565db3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pixi.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ jobs:
8585
- name: Checkout
8686
uses: actions/checkout@v4
8787

88+
- name: Update recipe version & sha256
89+
run: |
90+
VERSION="${GITHUB_REF_NAME#v}"
91+
SHA256=$(curl -sL "https://pypi.org/packages/source/k/kececinumbers/kececinumbers-${VERSION}.tar.gz" | sha256sum | cut -d' ' -f1)
92+
sed -i "s/version: \".*\"/version: \"${VERSION}\"/" conda.recipe/recipe.yaml
93+
sed -i "s/sha256: .*/sha256: ${SHA256}/" conda.recipe/recipe.yaml
94+
echo "Version: $VERSION, SHA256: $SHA256"
95+
8896
- name: Build conda package
8997
uses: prefix-dev/rattler-build-action@v0.2.38
9098
with:

0 commit comments

Comments
 (0)