From 406778484189d3c25b054d01e647db353891b0b0 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Sun, 22 May 2022 19:48:51 -0600 Subject: [PATCH] ci: Update 4-series workflow The existing workflow doesn't create a release for every build, and the 4-series version shouldn't either. --- .github/workflows/docker.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 3275338..fa08f1a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -241,9 +241,15 @@ jobs: with: name: Version path: ${{env.GITHUB_HOME}}\output\version.txt + - name: Create tag for non-rc builds + if: contains(env.VERSION, 'alpha') || contains(env.VERSION, 'beta') + run: | + git tag $($Env:VERSION)-4-Series + git push --tags origin # Create the release on the source repo - name: Create Release id: create_release + if: contains(env.VERSION,'-rc-') || contains(env.VERSION,'-hotfix-') uses: actions/create-release@v1 with: tag_name: ${{ env.VERSION }}-4-Series @@ -254,6 +260,7 @@ jobs: # Upload the build package to the release - name: Upload Release Package id: upload_release + if: contains(env.VERSION,'-rc-') || contains(env.VERSION,'-hotfix-') uses: actions/upload-release-asset@v1 with: upload_url: ${{ steps.create_release.outputs.upload_url }}