From 60cc354574a77f3ed0cde6bcfc142002421dc25a Mon Sep 17 00:00:00 2001 From: Miles Date: Mon, 29 Apr 2024 13:43:00 +0200 Subject: [PATCH] Change github release job in CI (#161) --- .github/workflows/CI-python.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI-python.yml b/.github/workflows/CI-python.yml index 1e5fdd5a..fa2dcb50 100644 --- a/.github/workflows/CI-python.yml +++ b/.github/workflows/CI-python.yml @@ -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 @@ -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/*