Automatic releases

Update build.yml
This commit is contained in:
Kroese 2023-04-29 07:34:25 +02:00 committed by GitHub
commit f1cc3bd484

View file

@ -71,14 +71,26 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
with: with:
xtag: "v1.99" xtag: "v1.98"
title: "v$((${{ secrets.MAJOR }})).$((${{ secrets.MINOR }}))" title: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
xbody: "Release v1.99" xbody: "Release v1.98"
bump: bump:
needs: release needs: release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
-
name: Autoincrement minor version
run: |
echo "NEW_MINOR_VERSION=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
-
name: Update minor version
uses: hmanzur/actions-set-secret@v2.0.0
with:
name: 'MINOR'
value: ${{ env.NEW_MINOR_VERSION }}
repository: ${{ github.repository }}
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- -
name: Update minor version name: Update minor version
uses: hmanzur/actions-set-secret@v2.0.0 uses: hmanzur/actions-set-secret@v2.0.0