From e0f239d6bb45e6b770a8700ab9df4f80484586fb Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 3 Jul 2024 14:40:58 +0200 Subject: [PATCH 1/4] Update actions/upload-artifact to v4 --- .github/workflows/release-snapshot.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index bd89417e21..9807059c7e 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -33,21 +33,21 @@ jobs: args: release --snapshot --skip docker - name: Upload macOS binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cli_darwin_snapshot path: | dist/*_darwin_*/ - name: Upload Linux binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cli_linux_snapshot path: | dist/*_linux_*/ - name: Upload Windows binaries - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cli_windows_snapshot path: | From 0616811f03e5394e27d868865732a31133af9723 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 3 Jul 2024 14:41:22 +0200 Subject: [PATCH 2/4] Test it out --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bde5b377bd..ccb9059ec7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,9 @@ name: release on: + pull_request: + types: [opened, synchronize] + push: tags: - "v*" From ad58a2b1c38a77b41f934c712ba8b67fee3a694d Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 3 Jul 2024 14:44:11 +0200 Subject: [PATCH 3/4] Test it out --- .github/workflows/release-snapshot.yml | 3 +++ .github/workflows/release.yml | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 9807059c7e..6b56e5d51c 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -1,6 +1,9 @@ name: release-snapshot on: + pull_request: + types: [opened, synchronize] + push: branches: - "main" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ccb9059ec7..bde5b377bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,6 @@ name: release on: - pull_request: - types: [opened, synchronize] - push: tags: - "v*" From 506211ad7b31f4143e107573cb3c2877bd39953e Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Wed, 3 Jul 2024 14:50:52 +0200 Subject: [PATCH 4/4] Don't run release-snapshot job on PRs --- .github/workflows/release-snapshot.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 6b56e5d51c..9807059c7e 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -1,9 +1,6 @@ name: release-snapshot on: - pull_request: - types: [opened, synchronize] - push: branches: - "main"