Automatic releases

Update build.yml
This commit is contained in:
Kroese 2023-04-29 08:18:55 +02:00 committed by GitHub
commit 58631c4019

View file

@ -8,8 +8,6 @@ on:
- '**/*.md' - '**/*.md'
- '.gitignore' - '.gitignore'
- '.dockerignore' - '.dockerignore'
env:
vers: v${{ secrets.MAJOR }}.${{ secrets.MINOR }}
jobs: jobs:
shellcheck: shellcheck:
@ -73,16 +71,11 @@ jobs:
env: env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
with: with:
tag: "$vers" tag: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
title: "$vers" title: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
body: "Release $vers" body: "Release v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
bump:
needs: release
runs-on: ubuntu-latest
steps:
- -
name: Autoincrement minor version name: Increment minor version
run: | run: |
echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
- -