Skip to content

Commit

Permalink
Change github release job in CI (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
milesgranger authored Apr 29, 2024
1 parent dc0ba6a commit 60cc354
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ on:
- released
- prereleased

permissions:
contents: write

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
Expand Down Expand Up @@ -389,9 +386,18 @@ jobs:
skip-existing: true
packages-dir: artifacts-${{ matrix.package }}/

gh-publish:
name: Publish artifacts to GH
if: startsWith(github.ref, 'refs/tags/')
permissions:
contents: write
needs: [build-test, build-sdist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
with:
name: dist
- name: Upload to GitHub
uses: softprops/action-gh-release@v2
with:
files: artifacts-${{ matrix.package }}/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
files: dist/*

0 comments on commit 60cc354

Please sign in to comment.