diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index ebfb2c7..c6d60e8 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -94,6 +94,13 @@ jobs: with: app-id: ${{ secrets.TOKEN_GEN_APP_ID }} private-key: ${{ secrets.TOKEN_GEN_PRIVATE_KEY }} - - run: gh release upload ${{ needs.release-please.outputs.tag_name }} dist/* + - name: Upload release assets + run: gh release upload "$TAG_NAME" dist/* --clobber env: + TAG_NAME: ${{ needs.release-please.outputs.tag_name }} + GITHUB_TOKEN: ${{ steps.gh-token-gen.outputs.token }} + - name: Publish release + run: gh release edit "$TAG_NAME" --draft=false + env: + TAG_NAME: ${{ needs.release-please.outputs.tag_name }} GITHUB_TOKEN: ${{ steps.gh-token-gen.outputs.token }} diff --git a/release-please-config.json b/release-please-config.json index ca7b31d..bb4debb 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -5,10 +5,11 @@ "changelog-path": "CHANGELOG.md", "bump-minor-pre-major": false, "bump-patch-for-minor-pre-major": false, - "draft": false, + "draft": true, + "force-tag-creation": true, "prerelease": false } }, "bootstrap-sha": "28919f33d8f088bd68e46ee24c83cfc3ef70d4d3", "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" -} \ No newline at end of file +}