From 3923e5300f34f0dc122b9065655615950723c9f2 Mon Sep 17 00:00:00 2001 From: Almar Klein Date: Thu, 5 Sep 2024 13:25:03 +0200 Subject: [PATCH] fix artifacts and set-output --- .github/workflows/cd.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 1638f6f9..0d8ca4d9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -129,20 +129,19 @@ jobs: uses: actions/download-artifact@v4 with: path: dist - - name: Get version from git ref - id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + - name: Set version from git ref + run: echo "WGPU_PY_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV - name: Upload Release Assets uses: softprops/action-gh-release@v2 with: - files: 'dist/*.tar.gz;dist/*.whl' - tag_name: ${{ steps.get_version.outputs.VERSION }} - name: ${{ steps.get_version.outputs.VERSION }} + files: 'dist/**/*.tar.gz;dist/**/*.whl' + tag_name: ${{ env.WGPU_PY_VERSION }} + name: ${{ env.WGPU_PY_VERSION }} token: ${{ secrets.GITHUB_TOKEN }} body: | Autogenerated binary wheels that include wgpu-native. See [the changelog](https://github.com/pygfx/wgpu-py/blob/main/CHANGELOG.md) for details. - draft: false + draft: true prerelease: false # - name: Publish to PyPI # uses: pypa/gh-action-pypi-publish@v1