From fdd7890b4c9c6dd6386038f04b196f044f61d5d1 Mon Sep 17 00:00:00 2001 From: Brian Benjamin Maranville Date: Fri, 11 Oct 2024 14:04:27 -0400 Subject: [PATCH] don't upload distributables from every push to unstable release --- .github/workflows/build-distributables.yml | 13 ++++--------- .github/workflows/publish-pypi.yml | 11 ----------- 2 files changed, 4 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build-distributables.yml b/.github/workflows/build-distributables.yml index ddd23fbf..b089aead 100644 --- a/.github/workflows/build-distributables.yml +++ b/.github/workflows/build-distributables.yml @@ -43,16 +43,11 @@ jobs: echo EOF } >> "$GITHUB_ENV" - - name: Update release assets and text - uses: actions/github-script@v7 - env: - SEARCH_PATTERN: "artifacts/*" + - name: Upload artifacts + uses: actions/upload-artifact@v4 with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const script = require('./.github/actions/update_unstable.js'); - const output = await script({github, context, glob}); - console.log(output); + name: artifacts-${{ matrix.config.os }}-${{ matrix.config.py }} + path: artifacts/* - name: Update current release if: startsWith(github.ref, 'refs/tags') diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 8b57a68d..7e9448ba 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -63,17 +63,6 @@ jobs: echo "PY3_WHL=$(ls artifacts/dist/*.whl)" >> $GITHUB_ENV echo "PY3_WHL=$(ls artifacts/dist/*.whl)" - - name: Update unstable release assets and text - uses: actions/github-script@v7 - env: - SEARCH_PATTERN: "artifacts/*" - with: - github-token: ${{secrets.GITHUB_TOKEN}} - script: | - const script = require('./.github/actions/update_unstable.js'); - const output = await script({github, context, glob}); - console.log(output); - - name: Update current release if: startsWith(github.ref, 'refs/tags') uses: johnwbyrd/update-release@v1.0.0