Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zachey01 committed Oct 23, 2024
1 parent bdf84cf commit 0af00ce
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,6 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Increase Version
id: version
run: |
latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1))
[[ -z "$latest_tag" ]] && new_version="1.0.0" || {
IFS='.' read -r major minor patch <<< "${latest_tag:1}"
new_version="$major.$minor.$((patch + 1))"
}
echo "new_version=$new_version" >> $GITHUB_ENV
- name: Build with Nuitka
uses: Nuitka/Nuitka-Action@main
with:
Expand All @@ -55,13 +45,17 @@ jobs:
git config user.name "GitHub Actions"
git config user.email "[email protected]"
- name: Create and Push Tag
run: |
git tag "v$new_version"
git push origin "v$new_version"
- name: Create GitHub Release
run: gh release create "v$new_version" ./build/SmoothedScroll.exe --title "Release v$new_version" --notes "Release version v$new_version"
- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: v1.${{ github.run_number }}
release_name: "Release v1.${{ github.run_number }}"
body: "Automatic release v1.${{ github.run_number }}"
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 0af00ce

Please sign in to comment.