diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6948456..6863c19 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,13 +52,14 @@ jobs: if: steps.check.outputs.exists == 'false' run: git tag "${{ steps.version.outputs.tag }}" && git push origin "${{ steps.version.outputs.tag }}" - - name: Create GitHub release + - name: Create GitHub release (draft) if: steps.check.outputs.exists == 'false' uses: softprops/action-gh-release@v2 with: tag_name: ${{ steps.version.outputs.tag }} name: ${{ steps.version.outputs.tag }} generate_release_notes: true + draft: true build-binaries: needs: tag-release @@ -101,3 +102,13 @@ jobs: with: tag_name: ${{ needs.tag-release.outputs.tag }} files: ${{ steps.package.outputs.asset }} + + publish-release: + needs: [tag-release, build-binaries] + if: needs.tag-release.outputs.is_new == 'true' + runs-on: ubuntu-latest + steps: + - name: Publish release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release edit "${{ needs.tag-release.outputs.tag }}" --draft=false --repo "${{ github.repository }}" diff --git a/Cargo.lock b/Cargo.lock index cc6fdbd..c034585 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -451,7 +451,7 @@ dependencies = [ [[package]] name = "git-task" -version = "1.0.2" +version = "1.0.3" dependencies = [ "anyhow", "assert_cmd", diff --git a/Cargo.toml b/Cargo.toml index b969107..4e2e4e6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "git-task" -version = "1.0.2" +version = "1.0.3" edition = "2021" [lib]