Automatic releases
Update build.yml
This commit is contained in:
commit
58631c4019
1 changed files with 15 additions and 22 deletions
37
.github/workflows/build.yml
vendored
37
.github/workflows/build.yml
vendored
|
@ -8,8 +8,6 @@ on:
|
||||||
- '**/*.md'
|
- '**/*.md'
|
||||||
- '.gitignore'
|
- '.gitignore'
|
||||||
- '.dockerignore'
|
- '.dockerignore'
|
||||||
env:
|
|
||||||
vers: v${{ secrets.MAJOR }}.${{ secrets.MINOR }}
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
|
@ -73,26 +71,21 @@ 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:
|
name: Increment minor version
|
||||||
needs: release
|
run: |
|
||||||
runs-on: ubuntu-latest
|
echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
|
||||||
steps:
|
-
|
||||||
-
|
name: Update minor version
|
||||||
name: Autoincrement minor version
|
uses: hmanzur/actions-set-secret@v2.0.0
|
||||||
run: |
|
with:
|
||||||
echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
|
name: 'MINOR'
|
||||||
-
|
value: ${{ env.NEW_MINOR }}
|
||||||
name: Update minor version
|
repository: ${{ github.repository }}
|
||||||
uses: hmanzur/actions-set-secret@v2.0.0
|
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
||||||
with:
|
|
||||||
name: 'MINOR'
|
|
||||||
value: ${{ env.NEW_MINOR }}
|
|
||||||
repository: ${{ github.repository }}
|
|
||||||
token: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
||||||
|
|
||||||
mirror:
|
mirror:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in a new issue