From 0747a4f4a167b1f54df0ec6694d45ce01e4e20fd Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Wed, 9 Apr 2025 14:14:15 -0700 Subject: [PATCH] CI: weekly-build debug: do not upload tags or artifacts. --- .github/workflows/sub_weeklyBuild.yml | 42 +++++++++++++-------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/.github/workflows/sub_weeklyBuild.yml b/.github/workflows/sub_weeklyBuild.yml index 4f15c0c980..4302ab7ee9 100644 --- a/.github/workflows/sub_weeklyBuild.yml +++ b/.github/workflows/sub_weeklyBuild.yml @@ -1,7 +1,7 @@ name: Weekly Build on: schedule: - - cron: "42 7 * * 2" + - cron: "0 23 * * *" permissions: contents: write @@ -22,29 +22,27 @@ jobs: shell: bash -l {0} run: | export BUILD_TAG=weekly-$(date "+%Y.%m.%d") - git tag ${BUILD_TAG} - git push origin tag ${BUILD_TAG} -f echo "BUILD_TAG=${BUILD_TAG}" >> "$GITHUB_ENV" echo "build_tag=${BUILD_TAG}" >> "$GITHUB_OUTPUT" - - name: Upload Source - env: - GH_TOKEN: ${{ github.token }} - run: | - python3 package/rattler-build/scripts/make_version_file.py ../freecad_version.txt - git config user.email '41898282+github-actions[bot]@users.noreply.github.com' - git config user.name 'github-actions[bot]' - git apply package/rattler-build/scripts/disable_git_info.patch - git commit -a -m "Disable git info write to Version.h" - git archive HEAD -o freecad_source_${BUILD_TAG}.tar - git submodule foreach --recursive \ - "git archive HEAD --prefix=\$path/ -o \$sha1.tar && \ - tar -A -f \$toplevel/freecad_source_${BUILD_TAG}.tar \$sha1.tar && \ - rm \$sha1.tar" - gzip freecad_source_${BUILD_TAG}.tar - sha256sum freecad_source_${BUILD_TAG}.tar.gz > freecad_source_${BUILD_TAG}.tar.gz-SHA256.txt - gh release create ${BUILD_TAG} --title "Weekly Build ${BUILD_TAG}" --notes "Weekly Build ${BUILD_TAG}" --prerelease || true - gh release upload --clobber ${BUILD_TAG} "freecad_source_${BUILD_TAG}.tar.gz" "freecad_source_${BUILD_TAG}.tar.gz-SHA256.txt" + # - name: Upload Source + # env: + # GH_TOKEN: ${{ github.token }} + # run: | + # python3 package/rattler-build/scripts/make_version_file.py ../freecad_version.txt + # git config user.email '41898282+github-actions[bot]@users.noreply.github.com' + # git config user.name 'github-actions[bot]' + # git apply package/rattler-build/scripts/disable_git_info.patch + # git commit -a -m "Disable git info write to Version.h" + # git archive HEAD -o freecad_source_${BUILD_TAG}.tar + # git submodule foreach --recursive \ + # "git archive HEAD --prefix=\$path/ -o \$sha1.tar && \ + # tar -A -f \$toplevel/freecad_source_${BUILD_TAG}.tar \$sha1.tar && \ + # rm \$sha1.tar" + # gzip freecad_source_${BUILD_TAG}.tar + # sha256sum freecad_source_${BUILD_TAG}.tar.gz > freecad_source_${BUILD_TAG}.tar.gz-SHA256.txt + # gh release create ${BUILD_TAG} --title "Weekly Build ${BUILD_TAG}" --notes "Weekly Build ${BUILD_TAG}" --prerelease || true + # gh release upload --clobber ${BUILD_TAG} "freecad_source_${BUILD_TAG}.tar.gz" "freecad_source_${BUILD_TAG}.tar.gz-SHA256.txt" build: needs: tag_build @@ -129,7 +127,7 @@ jobs: SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} SIGN_RELEASE: "true" TARGET_PLATFORM: ${{ matrix.target }} - UPLOAD_RELEASE: "true" + UPLOAD_RELEASE: "false" run: | cd package/rattler-build pixi install