Skip to content

Commit 6d2167a

Browse files
committed
Fix error in release glob
1 parent 3b7417f commit 6d2167a

File tree

3 files changed

+52
-11
lines changed

3 files changed

+52
-11
lines changed

.github/workflows/deploy.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ jobs:
2626
steps:
2727
# TODO: figure out how to download from release step
2828
- name: Download artifacts
29-
uses: actions/download-artifact@v5
30-
with:
31-
pattern: cibw-*
32-
path: dist
33-
merge-multiple: true
29+
run: |
30+
gh release download --pattern "*.whl"
31+
gh release download --pattern "*.tar.gz"
32+
- name: Move artifacts into dist
33+
run: |
34+
# TODO
35+
gh release download --pattern "*.whl"
36+
gh release download --pattern "*.tar.gz"
3437
- name: Publish to PyPI
3538
run: |
3639
# uv publish
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Download playground
2+
3+
on:
4+
push:
5+
6+
defaults:
7+
run:
8+
shell: bash
9+
10+
jobs:
11+
deploy-pypi:
12+
name: Deploy to PyPI
13+
# Having an environment for deployment is strongly recommend by PyPI
14+
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/#github-actions
15+
# You can comment this line out if you don't want it.
16+
# environment: deploy
17+
strategy:
18+
matrix:
19+
os: [ "ubuntu-latest" ]
20+
python-version: [ "3.11" ]
21+
runs-on: "${{ matrix.os }}"
22+
# permissions:
23+
# # this permission is mandatory for trusted publishing with PyPI
24+
# id-token: write
25+
steps:
26+
- name: Download artifacts
27+
run: |
28+
# gh release download --pattern "*.whl"
29+
gh release download --pattern "*.tar.gz"
30+
- name: Move artifacts into dist
31+
run: |
32+
ls
33+
tree
34+
# TODO
35+
#
36+
ls dist
37+
# - name: Publish to PyPI
38+
# run: |
39+
# # uv publish
40+
# # # Just in case, undo the changes to `pyproject.toml`
41+
# # git restore --staged . && git restore .

.github/workflows/release.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Release
22

33
on:
44
push:
5+
# TODO: turn back on
56
# tags: ['v*']
67

78
defaults:
@@ -121,10 +122,6 @@ jobs:
121122
with:
122123
python-version: ${{ matrix.python-version }}
123124
uv-dependency-install-flags: "--all-extras --group dev"
124-
- name: Add version to environment
125-
run: |
126-
PROJECT_VERSION=`sed -ne 's/^version = "\([0-9\.]*\)"/\1/p' pyproject.toml`
127-
echo "PROJECT_VERSION=$PROJECT_VERSION" >> $GITHUB_ENV
128125
- name: Generate Release Notes
129126
run: |
130127
echo "" >> ".github/release_template.md"
@@ -148,5 +145,5 @@ jobs:
148145
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
149146
draft: true
150147
files: |
151-
dist/example_fgen_basic-${{ env.PROJECT_VERSION }}-*.whl
152-
dist/example_fgen_basic-${{ env.PROJECT_VERSION }}.tar.gz
148+
dist/example_fgen_basic-*.whl
149+
dist/example_fgen_basic-*.tar.gz

0 commit comments

Comments
 (0)