Skip to content

Commit

Permalink
fixed bug in gh release create
Browse files Browse the repository at this point in the history
  • Loading branch information
ohuu committed Aug 26, 2024
1 parent b9bce08 commit 5296baa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ jobs:

- name: Check version numbers match
run: |
# Check if cardamon version has been bumped
card_ver=v$(cargo metadata --format-version=1 --no-deps | jq '.packages[0].version' | tr -d '"')
if [[ $card_ver != "${{ github.ref_name }}" ]]; then exit 1; fi
# Check if workspace members have also been bumped
workspace_members=($(cargo metadata --format-version=1 --no-deps | jq -c '.workspace_members[]'))
for member in "${workspace_members[@]:1}"; do
ver=v$(echo $member | tr -d '"' | sed "s/.*#//")
Expand Down Expand Up @@ -84,6 +86,6 @@ jobs:
path: artifact
merge-multiple: true
- name: Create release
run: gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" --notes "" artifact/*.*
run: gh release create ${{ github.ref_name }} --draft --title "Release ${{ github.ref_name }}" --notes "" artifact/cardamon-x86_64-unknown-linux-gnu-${{ github.ref_name }}.tar.gz
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ readme = "README.md"
members = [".", "entities", "migration"]

[dependencies]
entities = { version = "^0.0.2", path = "entities" }
migration = { version = "^0.0.2", path = "migration" }
entities = { version = "0.0.2", path = "entities" }
migration = { version = "0.0.2", path = "migration" }

anyhow = { version = "1.0.75", features = ["std"] }
axum = { version = "0.7.1", features = ["json", "macros"] }
Expand Down

0 comments on commit 5296baa

Please sign in to comment.