Skip to content

Commit ee00674

Browse files
committed
Pin goreleaser version, remove GITHUB_TOKEN and snapshot steps
Pin goreleaser to v2.14.3 instead of ~> v2. Remove GITHUB_TOKEN env var since we skip publish. Remove snapshot tag/release steps to be handled when consolidating with release-snapshot.yml. Co-authored-by: Isaac
1 parent 36bb361 commit ee00674

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/workflows/release-build.yml

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
permissions:
2323
id-token: write
24-
contents: write
24+
contents: read
2525

2626
steps:
2727
- name: Checkout repository
@@ -76,10 +76,8 @@ jobs:
7676
- name: Run GoReleaser
7777
uses: goreleaser/goreleaser-action@ec59f474b9834571250b370d4735c50f8e2d1e29 # v7.0.0
7878
with:
79-
version: ~> v2
79+
version: v2.14.3
8080
args: release --skip=publish ${{ !startsWith(github.ref, 'refs/tags/') && '--snapshot' || '' }}
81-
env:
82-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8381

8482
- name: Verify Windows binary signatures
8583
run: |
@@ -100,25 +98,6 @@ jobs:
10098
dist/*.tar.gz
10199
dist/*SHA256SUMS*
102100
103-
# For snapshot builds on main: update the snapshot tag and release.
104-
- name: Update snapshot tag
105-
if: github.ref == 'refs/heads/main'
106-
run: |
107-
git tag snapshot
108-
git push origin snapshot --force
109-
110-
- name: Update snapshot release
111-
if: github.ref == 'refs/heads/main'
112-
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
113-
with:
114-
name: Snapshot
115-
prerelease: true
116-
tag_name: snapshot
117-
token: ${{ secrets.GITHUB_TOKEN }}
118-
files: |-
119-
dist/databricks_cli_*.zip
120-
dist/databricks_cli_*.tar.gz
121-
122101
wheel:
123102
runs-on:
124103
group: databricks-protected-runner-group-large

0 commit comments

Comments
 (0)