diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17f1809..4e16343 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: ./build.assets.sh - name: Upload uses: softprops/action-gh-release@v2 - if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' with: files: | freebsd_386_client.tar.gz @@ -95,7 +95,7 @@ jobs: ls -la android_client.apk - name: Upload uses: softprops/action-gh-release@v2 - if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' with: files: | android_client.apk @@ -205,7 +205,7 @@ jobs: path: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip - name: Upload Windows release asset uses: softprops/action-gh-release@v2 - if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' with: files: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip tag_name: ${{ github.ref_name }} @@ -275,7 +275,7 @@ jobs: path: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip - name: Upload macOS release asset uses: softprops/action-gh-release@v2 - if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' with: files: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip tag_name: ${{ github.ref_name }} @@ -336,7 +336,7 @@ jobs: path: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip - name: Upload Linux release asset uses: softprops/action-gh-release@v2 - if: github.event_name == 'release' || github.event_name == 'workflow_dispatch' + if: github.ref_type == 'tag' || github.event_name == 'workflow_dispatch' with: files: ${{ env.GUI_DIR }}/bin/${{ env.APP_NAME }}-${{ matrix.os_name }}-${{ matrix.arch }}.zip tag_name: ${{ github.ref_name }} diff --git a/README.md b/README.md index 09416c2..fcf65ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # NPS -![Version](https://img.shields.io/badge/version-v0.26.37-blue) +![Version](https://img.shields.io/badge/version-v0.26.38-blue) ![License](https://img.shields.io/badge/license-GPL--3.0-green) ![Go](https://img.shields.io/badge/Go-%3E%3D1.22-00ADD8?logo=go)