Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick committed Oct 13, 2023
1 parent 7d901e6 commit 3015b11
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,30 @@ jobs:
- name: Package with Maven
run: mvn package -DskipTests

- name: Determine Next Version
id: next_version
run: |
current_version=$(cat version.txt)
major_minor="1.1."
increment_version=$((current_version + 1))
next_version="${major_minor}${increment_version}"
echo "$next_version" > version.txt
echo "next_version=${next_version}" >> $GITHUB_OUTPUT
# - name: Determine Next Version
# id: next_version
# run: |
# current_version=$(cat version.txt)
# major_minor="1.1."
# increment_version=$((current_version + 1))
# next_version="${major_minor}${increment_version}"
# echo "$next_version" > version.txt
# echo "next_version=${next_version}" >> $GITHUB_OUTPUT
- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.next_version.outputs.next_version }}
release_name: Release ${{ steps.next_version.outputs.next_version }}
tag_name: ${{ steps.next_version.outputs.version }}
release_name: Release ${{ steps.next_version.outputs.version }}
draft: false
prerelease: false

Expand Down

0 comments on commit 3015b11

Please sign in to comment.