diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7da89daf..4e4f9738 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,14 +35,12 @@ jobs: run: | echo "🍻" > release.txt - name: Release - uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - prerelease: true - body_path: release.txt - files: ${{ steps.info.outputs.artifacts_dir }}/* + GH_TOKEN: ${{ github.token }} + run: | + gh release create ${{ github.ref_name }} --draft --notes "Draft release for ${{ github.ref_name }}" + gh release upload ${{ github.ref_name }} ${{ steps.info.outputs.artifacts_dir }}/* publish-gcp: name: Publish artifacts to GCP