Skip to content

Commit

Permalink
don't upload distributables from every push to unstable release
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Oct 11, 2024
1 parent 4120af2 commit fdd7890
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/build-distributables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdd7890

Please sign in to comment.