From 2e8cde7ef6597de0b4fea9175b7994a7de74c6e4 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 29 Apr 2023 08:33:23 +0200 Subject: [PATCH] Automatic releases --- .github/workflows/build.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48463d1..5736f05 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,19 +60,35 @@ jobs: docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && \ docker push "ghcr.io/${{ github.repository }}:latest" - bump: + release: needs: build runs-on: ubuntu-latest + permissions: + contents: write steps: + - uses: actions/checkout@v3 + - + name: Create a release + uses: kroese/github-release@v4 + env: + GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }} + with: + tag: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}" + title: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}" + body: "Release v${{ secrets.MAJOR }}.${{ secrets.MINOR }}" + - + name: Increment minor version + run: | + echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV - name: Update minor version uses: hmanzur/actions-set-secret@v2.0.0 with: name: 'MINOR' - value: $((${{ secrets.MINOR }}+1)) + value: ${{ env.NEW_MINOR }} repository: ${{ github.repository }} token: ${{ secrets.REPO_ACCESS_TOKEN }} - + mirror: runs-on: ubuntu-latest permissions: