From c8619d0ed59817e79a44a0bfa9a468b00992ff48 Mon Sep 17 00:00:00 2001 From: Juha Kukkonen Date: Mon, 14 Feb 2022 02:11:37 +0200 Subject: [PATCH] Update publish release workflow --- .github/workflows/release.yaml | 46 +++------------------------------- Cargo.toml | 4 +-- utoipa-gen/Cargo.toml | 2 +- 3 files changed, 6 insertions(+), 46 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7c7649a0..289793fa 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,9 +1,8 @@ name: Publish release on: - push: - tags: - - "*.*.**" + release: + types: [published] env: CARGO_TERM_COLOR: always @@ -14,46 +13,7 @@ jobs: steps: - uses: actions/checkout@v2 - # with: - # fetch-depth: 0 - - # - uses: ./.github/actions/gitlog - # name: Get changed commits - # id: gitlog - # with: - # output-file: ./release-gitlog.md - - # - name: Prepare changes - # run: | - # echo "# Changes in this Release" > ./release-changes.md - # cat < ./release-gitlog.md >> ./release-changes.md - - # cat ./release-changes.md - - # - name: Get release info - # id: release_info - # run: | - # version=$(cargo read-manifest | jq -r .version) - - # prerelease=false - # if [[ "$version" =~ .*-.* ]]; then - # prerelease=true - # fi - # echo "::set-output name=is_prerelease::$prerelease" - # echo "::set-output name=version::$version" - - # - name: Create release - # id: create_release - # uses: actions/create-release@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # tag_name: ${{ steps.release_info.outputs.version }} - # release_name: Release ${{ steps.release_info.outputs.version }} - # body_path: ./release-changes.md - # draft: false - # prerelease: ${{ steps.release_info.outputs.is_prerelease }} - + - name: Cargo publish run: | echo ${{ secrets.CARGO_LOGIN }} | cargo login diff --git a/Cargo.toml b/Cargo.toml index e13643c7..654cdd29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "utoipa" description = "Compile time rest API documentation for Rust" -version = "0.1.0-beta.1" +version = "0.1.0-beta.0" edition = "2021" license = "MIT OR Apache-2.0" readme = "README.md" @@ -29,7 +29,7 @@ serde_json = { version = "1.0", optional = true } rust-embed = { version = "6.3", optional = true, features = ["interpolate-folder-path"] } actix-web = { version = "3.3", optional = true } mime_guess = { version = "2.0", optional = true } -utoipa-gen = { version = "0.1.0-beta.1", path = "./utoipa-gen" } +utoipa-gen = { version = "0.1.0-beta.0", path = "./utoipa-gen" } [dev-dependencies] paste = "1.0.6" diff --git a/utoipa-gen/Cargo.toml b/utoipa-gen/Cargo.toml index 877dcdd9..d768f679 100644 --- a/utoipa-gen/Cargo.toml +++ b/utoipa-gen/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "utoipa-gen" description = "Code generation implementation for utoipa" -version = "0.1.0-beta.1" +version = "0.1.0-beta.0" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/juhaku/utoipa"