diff --git a/.github/workflows/macos-homebrew-xapian.yml b/.github/workflows/macos-homebrew-xapian.yml index bdce22f7..d410ebc4 100644 --- a/.github/workflows/macos-homebrew-xapian.yml +++ b/.github/workflows/macos-homebrew-xapian.yml @@ -94,7 +94,7 @@ jobs: - name: version-file shell: bash run: | - current_tag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p |cut -c 2-) + current_tag=$(git tag --sort=-creatordate | grep "^v" | sed -n 1p |cut -c 2-) echo "$current_tag">version.txt - name: compile run: | @@ -120,7 +120,7 @@ jobs: - name: changelog id: changelog run: | - previousTag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 2p) + previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" @@ -131,7 +131,7 @@ jobs: CHANGELOG="${CHANGELOG//"'"/ }" echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" - echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p)" + echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" - name: Set outputs id: vars @@ -190,6 +190,7 @@ jobs: file: ${{ env.targetName }}.dmg asset_name: ${{ matrix.qt_ver }}-${{ env.targetName }}_${{ matrix.os }}_homebrew_${{steps.vars.outputs.release_date}}.dmg + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} diff --git a/.github/workflows/ubuntu-6.2-xapian.yml b/.github/workflows/ubuntu-6.2-xapian.yml index 0481cd9c..0e2b53be 100644 --- a/.github/workflows/ubuntu-6.2-xapian.yml +++ b/.github/workflows/ubuntu-6.2-xapian.yml @@ -79,7 +79,7 @@ jobs: - name: version-file shell: bash run: | - current_tag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p |cut -c 2-) + current_tag=$(git tag --sort=-creatordate | grep "^v" | sed -n 1p |cut -c 2-) echo "$current_tag">version.txt - name: build goldendict @@ -108,7 +108,7 @@ jobs: - name: changelog id: changelog run: | - previousTag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 2p) + previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" @@ -119,7 +119,7 @@ jobs: CHANGELOG="${CHANGELOG//"'"/ }" echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" - echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p)" + echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" - name: Set outputs id: vars @@ -179,6 +179,7 @@ jobs: file: ${{ steps.vars.outputs.appname }} asset_name: ${{ matrix.qt_ver }}-${{ steps.vars.outputs.appname }} + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 03da3cc6..6533626e 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -66,7 +66,7 @@ jobs: - name: version-file shell: bash run: | - current_tag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p |cut -c 2-) + current_tag=$(git tag --sort=-creatordate | grep "^v" | sed -n 1p |cut -c 2-) echo "$current_tag">version.txt - name: build goldendict @@ -91,7 +91,7 @@ jobs: - name: changelog id: changelog run: | - previousTag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 2p) + previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" @@ -102,7 +102,7 @@ jobs: CHANGELOG="${CHANGELOG//"'"/ }" echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" - echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p)" + echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" - name: Set outputs id: vars run: | @@ -160,7 +160,7 @@ jobs: repo_token: ${{ secrets.GITHUB_TOKEN }} file: ${{ steps.vars.outputs.appname }} asset_name: ${{ matrix.qt_ver }}-${{ steps.vars.outputs.appname }} - + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} diff --git a/.github/workflows/windows-6.x-xapian.yml b/.github/workflows/windows-6.x-xapian.yml index f36e0e04..0c2a18f4 100644 --- a/.github/workflows/windows-6.x-xapian.yml +++ b/.github/workflows/windows-6.x-xapian.yml @@ -56,7 +56,7 @@ jobs: id: changelog shell: bash run: | - previousTag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 2p) + previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" @@ -67,7 +67,7 @@ jobs: CHANGELOG="${CHANGELOG//"'"/ }" echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" - echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p)" + echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" - name: "Build Changelog" id: build_changelog @@ -129,7 +129,7 @@ jobs: - name: version-file shell: bash run: | - current_tag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p |cut -c 2-) + current_tag=$(git tag --sort=-creatordate | grep "^v" | sed -n 1p |cut -c 2-) echo "$current_tag">version.txt cat version.txt @@ -183,6 +183,7 @@ jobs: file: ${{ steps.package.outputs.packageName }}.zip asset_name: ${{ matrix.qt_ver }}-${{ env.targetName }}_${{ matrix.os }}_${{steps.vars.outputs.release_date}}.zip + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} @@ -223,6 +224,7 @@ jobs: file: release/${{ env.targetName }} asset_name: ${{ matrix.qt_ver }}.${{ matrix.os }}-${{ env.targetName }} + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} @@ -234,6 +236,7 @@ jobs: file: release/GoldenDict.pdb asset_name: ${{ matrix.qt_ver }}.${{ matrix.os }}-GoldenDict.pdb + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} @@ -258,6 +261,7 @@ jobs: file: ${{ steps.package.outputs.packageName }}/GoldenDict-ng-v23-Installer.exe asset_name: ${{ matrix.qt_ver }}-GoldenDict-ng-Installer.exe + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6e57d740..d45ab0ea 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -59,7 +59,7 @@ jobs: id: changelog shell: bash run: | - previousTag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 2p) + previousTag=$(git tag --sort=-creatordate | grep "^v" | sed -n 2p) echo "previousTag : $previousTag" CHANGELOG="$(git log --oneline --no-decorate $previousTag..HEAD)" @@ -70,7 +70,7 @@ jobs: CHANGELOG="${CHANGELOG//"'"/ }" echo "::set-output name=changelog::$(echo "$CHANGELOG")" echo "::set-output name=prev_tag::$previousTag" - echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p)" + echo "::set-output name=curr_tag::$(git tag --sort=-creatordate | grep "^v" | sed -n 1p)" - name: Set outputs id: vars @@ -85,7 +85,7 @@ jobs: - name: version-file shell: bash run: | - current_tag=$(git tag --sort=-creatordate | grep "v.*" | sed -n 1p |cut -c 2-) + current_tag=$(git tag --sort=-creatordate | grep "^v" | sed -n 1p |cut -c 2-) echo "$current_tag">version.txt - uses: ilammy/msvc-dev-cmd@v1 @@ -164,6 +164,7 @@ jobs: file: ${{ steps.package.outputs.packageName }}.zip asset_name: ${{ matrix.qt_ver }}-${{ env.targetName }}_${{ matrix.os }}_${{steps.vars.outputs.release_date}}.zip + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} @@ -206,6 +207,7 @@ jobs: file: release/${{ env.targetName }} asset_name: ${{ matrix.qt_ver }}-${{ env.targetName }} + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}} @@ -234,6 +236,7 @@ jobs: file: ${{ steps.package.outputs.packageName }}/GoldenDict-ng-v23-Installer.exe asset_name: ${{ matrix.qt_ver }}-GoldenDict-ng-Installer.exe + tag: latest-tag-ignore overwrite: true release_name: GoldenDict-ng-v${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.release_hm }}.${{ steps.vars.outputs.sha_short }} prerelease: ${{env.prerelease}}