diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 67723b4f0afb5..4ca217d7d4e9e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -164,7 +164,8 @@ jobs: name: Upload artifacts to releases.drivechain.info runs-on: ubuntu-latest needs: [build-linux, build-macos, build-windows] - if: github.repository_owner == 'LayerTwo-Labs' + # avoid uploading on PRs + if: github.event_name == 'push' && github.ref == 'refs/heads/sidechain' && github.repository_owner == 'LayerTwo-Labs' steps: - name: Download artifacts uses: actions/download-artifact@v4