diff --git a/.github/actions/build-tag.sh b/.github/actions/build-tag.sh index 70028771511..51642474561 100755 --- a/.github/actions/build-tag.sh +++ b/.github/actions/build-tag.sh @@ -14,6 +14,6 @@ echo "$GH_PACKAGE" make TCVERSION=${GH_ARCH##*-} ARCH=${GH_ARCH%%-*} -C spk/${GH_PACKAGE} # publish to synocommunity.com when the API key is set -if [-n $API_KEY ]; then +if [ -n "${API_KEY}" ]; then make TCVERSION=${GH_ARCH##*-} ARCH=${GH_ARCH%%-*} publish -C spk/${GH_PACKAGE} fi diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89333e57af5..0cdccf66445 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,9 +109,7 @@ jobs: release: needs: build name: Release - ## Build a github release on a git tag with the format 'packagename-version' - ## But don't make a github release when the PUBLISH_API_KEY is set. - if: startsWith(github.ref, 'refs/tags/') && secrets.PUBLISH_API_KEY == '' + if: startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Download build artifacts