Skip to content

Commit 5b683dd

Browse files
committed
CD: automate conda-forge update
2
1 parent 1730021 commit 5b683dd

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,18 @@ jobs:
2121
dist:
2222
name: Create dist
2323
runs-on: ubuntu-slim
24+
outputs:
25+
version: ${{ steps.build-inspect.outputs.package_version }}
2426
steps:
2527
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2628
with:
2729
fetch-depth: 0
2830
persist-credentials: false
2931

30-
- uses: hynek/build-and-inspect-python-package@2abe76da66d0a6a4a227101f9348ee855797cfa5 # v3.0.1
32+
- id: build-inspect
33+
uses: hynek/build-and-inspect-python-package@2abe76da66d0a6a4a227101f9348ee855797cfa5 # v3.0.1
3134

32-
publish:
35+
publish-pypi:
3336
name: Publish
3437
needs: [dist]
3538
environment: pypi
@@ -52,3 +55,18 @@ jobs:
5255
subject-path: "dist/*"
5356

5457
- uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
58+
59+
conda-forge:
60+
name: Update conda-forge feedstock
61+
needs: [dist, publish-pypi]
62+
environment: cf
63+
runs-on: ubuntu-slim
64+
if: github.event_name == 'release' && github.event.action == 'published'
65+
steps:
66+
- name: Update conda-forge feedstock
67+
uses: beckermr/update-feedstock-version@ed22f75e867861aed79d4e8cd0a41d65af6ccc40 # v4
68+
with:
69+
feedstock: array-api-extra-feedstock
70+
version: ${{ needs.dist.outputs.version }}
71+
github-token: ${{ secrets.XPX_CF_TOKEN }}
72+
automerge: false

0 commit comments

Comments
 (0)