From 9922a3abd96a17f7edc4453919e857da21ab8d09 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 7 Jun 2025 09:34:49 +0200 Subject: [PATCH] build: more resilient pushes to releases --- .github/workflows/build-syncthing.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-syncthing.yaml b/.github/workflows/build-syncthing.yaml index 48a650939..64699f3d0 100644 --- a/.github/workflows/build-syncthing.yaml +++ b/.github/workflows/build-syncthing.yaml @@ -716,7 +716,7 @@ jobs: RCLONE_CONFIG_OBJSTORE_REGION: ${{ secrets.S3_REGION }} RCLONE_CONFIG_OBJSTORE_ACL: public-read with: - args: sync -v packages objstore:nightly + args: sync -v --no-update-modtime packages objstore:nightly # # Push release artifacts to Spaces @@ -772,7 +772,7 @@ jobs: RCLONE_CONFIG_OBJSTORE_REGION: ${{ secrets.S3_REGION }} RCLONE_CONFIG_OBJSTORE_ACL: public-read with: - args: sync -v packages objstore:release/${{ env.VERSION }} + args: sync -v --no-update-modtime packages objstore:release/${{ env.VERSION }} - name: Push to object store (latest) uses: docker://docker.io/rclone/rclone:latest @@ -785,7 +785,7 @@ jobs: RCLONE_CONFIG_OBJSTORE_REGION: ${{ secrets.S3_REGION }} RCLONE_CONFIG_OBJSTORE_ACL: public-read with: - args: sync -v objstore:release/${{ env.VERSION }} objstore:release/latest + args: sync -v --no-update-modtime objstore:release/${{ env.VERSION }} objstore:release/latest - name: Create GitHub releases and push binaries run: | @@ -800,7 +800,7 @@ jobs: --title "$VERSION" \ --notes-from-tag fi - gh release upload "$VERSION" \ + gh release upload --clobber "$VERSION" \ packages/*.asc packages/*.json \ packages/syncthing-*.tar.gz \ packages/syncthing-*.zip \ @@ -816,7 +816,7 @@ jobs: --title "$VERSION" \ --notes "https://github.com/syncthing/syncthing/releases/tag/$VERSION" fi - gh release upload "$VERSION" \ + gh release upload --clobber "$VERSION" \ $PKGS/*.asc \ $PKGS/*${repo}* done @@ -899,7 +899,7 @@ jobs: RCLONE_CONFIG_OBJSTORE_REGION: ${{ secrets.S3_REGION }} RCLONE_CONFIG_OBJSTORE_ACL: public-read with: - args: sync -v dists objstore:apt/dists + args: sync -v --no-update-modtime dists objstore:apt/dists # # Build and push to Docker Hub