diff --git a/.github/workflows/deploy-linux.yml b/.github/workflows/deploy-linux.yml index 9af4378..da93e75 100644 --- a/.github/workflows/deploy-linux.yml +++ b/.github/workflows/deploy-linux.yml @@ -104,7 +104,7 @@ jobs: --title "PPanel Server ${{ env.VERSION }}" \ --notes "Release ${{ env.VERSION }}" \ --latest - elif [ "${{ github.event_name }}" = "push" ] && startsWith(github.ref, 'refs/tags/'); then + elif [ "${{ github.event_name }}" = "push" ] && [ "${{ github.ref_type }}" = "tag" ]; then echo "Creating release for tag ${{ env.VERSION }}" gh release create ${{ env.VERSION }} \ --title "PPanel Server ${{ env.VERSION }}" \