Skip to content

Commit

Permalink
Merge pull request #13 from moia-oss/fix-publish-pipeline-again
Browse files Browse the repository at this point in the history
Fix publish.yaml again
  • Loading branch information
Felerius authored Feb 14, 2023
2 parents 0ffa12b + 5eead0f commit 1bee6e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,32 @@ jobs:
id: calc_version
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: norelease
bump_version_scheme: patch
tag_prefix: ""
dry_run: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Set 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
if: ${{ steps.calc_version.outputs.version }} != ""
run: |
git config --global user.email "[email protected]"
git config --global user.name "MOIA Rust Maintainers"
git commit -am "Release ${{ steps.calc_version.outputs.version }}"
git push
- name: Create github release
if: ${{ steps.calc_version.outputs.version }} != ""
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: norelease
bump_version_scheme: patch
tag_prefix: ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
if: ${{ steps.calc_version.outputs.version }} != ""
run: cargo publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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 = ""
version = "0.1.2"
license = "MIT OR Apache-2.0"

[dependencies]
Expand Down

0 comments on commit 1bee6e0

Please sign in to comment.