CI: weekly-build debug: do not upload tags or artifacts.
This commit is contained in:
42
.github/workflows/sub_weeklyBuild.yml
vendored
42
.github/workflows/sub_weeklyBuild.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user