Skip to content

Commit 229ffe5

Browse files
committed
set current tag for go releaser
Signed-off-by: Austin Abro <[email protected]>
1 parent c591adc commit 229ffe5

File tree

2 files changed

+35
-37
lines changed

2 files changed

+35
-37
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -82,43 +82,43 @@ jobs:
8282
path: build/
8383
retention-days: 1
8484

85-
validate-release:
86-
runs-on: ubuntu-latest
87-
needs: build-release
88-
steps:
89-
# Checkout the repo and setup the tooling for this job
90-
- name: Checkout
91-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
92-
with:
93-
fetch-depth: 0
94-
95-
- name: Download build artifacts
96-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
97-
with:
98-
name: build-artifacts
99-
path: build/
100-
101-
- name: Setup golang
102-
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
103-
with:
104-
go-version-file: go.mod
105-
106-
- name: Make Zarf executable
107-
run: |
108-
chmod +x build/zarf
109-
110-
# Build the example packages and run the tests
111-
- name: Build examples and run tests
112-
run: |
113-
sudo env "PATH=$PATH" CI=true APPLIANCE_MODE=true CLI_VERSION=$GITHUB_REF_NAME make test-e2e ARCH=amd64
114-
115-
- name: Save logs
116-
if: always()
117-
uses: ./.github/actions/save-logs
85+
# validate-release:
86+
# runs-on: ubuntu-latest
87+
# needs: build-release
88+
# steps:
89+
# # Checkout the repo and setup the tooling for this job
90+
# - name: Checkout
91+
# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
92+
# with:
93+
# fetch-depth: 0
94+
95+
# - name: Download build artifacts
96+
# uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
97+
# with:
98+
# name: build-artifacts
99+
# path: build/
100+
101+
# - name: Setup golang
102+
# uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
103+
# with:
104+
# go-version-file: go.mod
105+
106+
# - name: Make Zarf executable
107+
# run: |
108+
# chmod +x build/zarf
109+
110+
# # Build the example packages and run the tests
111+
# - name: Build examples and run tests
112+
# run: |
113+
# sudo env "PATH=$PATH" CI=true APPLIANCE_MODE=true CLI_VERSION=$GITHUB_REF_NAME make test-e2e ARCH=amd64
114+
115+
# - name: Save logs
116+
# if: always()
117+
# uses: ./.github/actions/save-logs
118118

119119
create-release:
120120
runs-on: ubuntu-latest
121-
needs: validate-release
121+
needs: build-release
122122
environment: release
123123
permissions:
124124
contents: write
@@ -189,6 +189,7 @@ jobs:
189189
env:
190190
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}}
191191
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.brew-tap-token.outputs.token }}
192+
GORELEASER_CURRENT_TAG: $GITHUB_REF_NAME
192193

193194
- name: Report disk space on failure
194195
if: failure()

.goreleaser.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
version: 2
22

3-
git:
4-
tag_sort: -version:creatordate
5-
63
before:
74
hooks:
85
- go mod tidy

0 commit comments

Comments
 (0)