Skip to content

Commit 5f225ad

Browse files
tbitcsoz-agent
andcommitted
fix: eliminate upload/download-artifact to remove Node.js Buffer() deprecation
Merge dev-build + pypi-dev-publish into a single build-and-publish job. The dist/ directory never leaves the runner, so upload-artifact and download-artifact are not needed — and neither is the Buffer() deprecation warning emitted by the download-artifact action's bundled Node.js code. - Removed: actions/upload-artifact@v7, actions/download-artifact@v8 - Merged: pypi publish step is now the last step of the build job - continue-on-error on the publish step only (not the whole job) - docs-build needs: build-and-publish (renamed dependency) Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 7f88cff commit 5f225ad

1 file changed

Lines changed: 7 additions & 20 deletions

File tree

.github/workflows/dev-release.yml

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ jobs:
2323
- run: mypy src/specsmith --ignore-missing-imports
2424
- run: pytest tests/ -x -q
2525

26-
dev-build:
26+
build-and-publish:
2727
needs: test
2828
runs-on: ubuntu-latest
29+
environment: pypi
30+
permissions:
31+
contents: read
32+
id-token: write
2933
steps:
3034
- uses: actions/checkout@v6
3135
with:
@@ -56,29 +60,12 @@ jobs:
5660
5761
- run: python -m build
5862

59-
- name: Upload build artifacts
60-
uses: actions/upload-artifact@v7
61-
with:
62-
name: dev-dist
63-
path: dist/
64-
65-
pypi-dev-publish:
66-
needs: dev-build
67-
runs-on: ubuntu-latest
68-
environment: pypi
69-
permissions:
70-
id-token: write
71-
continue-on-error: true
72-
steps:
73-
- uses: actions/download-artifact@v8
74-
with:
75-
name: dev-dist
76-
path: dist/
7763
- name: Publish dev release to PyPI
7864
uses: pypa/gh-action-pypi-publish@release/v1
65+
continue-on-error: true # version already exists on PyPI is not a failure
7966

8067
docs-build:
81-
needs: dev-build
68+
needs: build-and-publish
8269
runs-on: ubuntu-latest
8370
continue-on-error: true
8471
steps:

0 commit comments

Comments
 (0)