Skip to content

Commit

Permalink
Fix norelease labels
Browse files Browse the repository at this point in the history
  • Loading branch information
urmaul committed Oct 9, 2023
1 parent 6a7fa37 commit dd3f948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set version
if: ${{ steps.calc_version.outputs.version }} != ""
if: ${{ steps.calc_version.outputs.version != "" }}
run: |
sed -i "s/^version = \".*\"$/version = \"${{ steps.calc_version.outputs.version }}\"/" Cargo.toml
- name: Publish new version to main
Expand All @@ -39,15 +39,15 @@ jobs:
git commit -am "Release ${{ steps.calc_version.outputs.version }} [skip ci]"
git push
- name: Create github release
if: ${{ steps.calc_version.outputs.version }} != ""
if: ${{ steps.calc_version.outputs.version != "" }}
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
tag_prefix: ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: ${{ steps.calc_version.outputs.version }} != ""
if: ${{ steps.calc_version.outputs.version != "" }}
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ homepage = "https://github.com/moia-oss/tinytime.rs"
repository = "https://github.com/moia-oss/tinytime.rs"
documentation = "https://docs.rs/tinytime"
edition = "2021"
# Version is defined during release
version = ""
version = "0.7.1"
license = "MIT OR Apache-2.0"

[dependencies]
Expand Down

0 comments on commit dd3f948

Please sign in to comment.