Skip to content

Commit

Permalink
Update publish release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
juhaku committed Feb 14, 2022
1 parent c7d41c9 commit c8619d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 46 deletions.
46 changes: 3 additions & 43 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish release

on:
push:
tags:
- "*.*.**"
release:
types: [published]

env:
CARGO_TERM_COLOR: always
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion utoipa-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c8619d0

Please sign in to comment.