diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f61b00243..1fd47ab30 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -248,7 +248,7 @@ jobs: - name: Upload artifacts run: | - make circleci_upload + make ci_upload env: RCLONE_CONFIG_PASS: ${{ secrets.RCLONE_CONFIG_PASS }} # Upload artifacts if not a PR && not a fork diff --git a/Makefile b/Makefile index 658d6f0dd..cc991bfae 100644 --- a/Makefile +++ b/Makefile @@ -187,6 +187,16 @@ log_since_last_release: compile_all: go run bin/cross-compile.go -compile-only $(BUILDTAGS) $(TAG) +ci_upload: + sudo chown -R $$USER build + find build -type l -delete + gzip -r9v build + ./rclone --config bin/travis.rclone.conf -v copy build/ $(BETA_UPLOAD)/testbuilds +ifndef BRANCH_PATH + ./rclone --config bin/travis.rclone.conf -v copy build/ $(BETA_UPLOAD_ROOT)/test/testbuilds-latest +endif + @echo Beta release ready at $(BETA_URL)/testbuilds + ci_beta: git log $(LAST_TAG).. > /tmp/git-log.txt go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt $(BUILD_FLAGS) $(BUILDTAGS) $(TAG)