Skip to content

Commit

Permalink
Update build-and-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
atas committed Oct 15, 2024
1 parent dfd2ed0 commit aec15e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ jobs:
latest_release=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest)
current_version=$(echo "$latest_release" | jq -r .tag_name)
current_version=${current_version#v} # Remove the 'v' from the version if present
current_version=${current_version%-dev} # Remove '-dev' suffix if present
IFS='.' read -r major minor patch <<< "$current_version"
# Increment the patch version
Expand All @@ -134,8 +135,8 @@ jobs:
# run: |
# mv swpserver.tar.gz swpserver-$next_version.tar.gz
# COMMIT_MSG=$(git log -1 --pretty=%B)
# gh release create "v$next_version" swpserver-$next_version.tar.gz\
# --title "Release v$next_version" \
# gh release create "v$next_version-dev" swpserver-$next_version.tar.gz\
# --title "Release v$next_version-dev" \
# --notes "$COMMIT_MSG"
# env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit aec15e9

Please sign in to comment.