Skip to content

Commit 13ebec0

Browse files
authored
fix: release builds (#1474)
1 parent cc89ae3 commit 13ebec0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
build:
1919
runs-on: windows-2022
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
with:
2323
# fetch-depth required for gitversion in `Build` step
2424
fetch-depth: 0
2525

26-
- uses: actions/setup-go@v3
26+
- uses: actions/setup-go@v5
2727
with:
2828
go-version-file: 'go.mod'
2929

@@ -50,6 +50,7 @@ jobs:
5050
$ErrorActionPreference = "Stop"
5151
5252
dotnet-gitversion /output json /showvariable FullSemVer | Set-Content VERSION -PassThru
53+
$Version = Get-Content VERSION
5354
5455
make crossbuild
5556
# '+' symbols are invalid characters in image tags
@@ -61,7 +62,7 @@ jobs:
6162
}
6263
6364
- name: Upload Artifacts
64-
uses: actions/upload-artifact@v3
65+
uses: actions/upload-artifact@v4
6566
with:
6667
name: windows_exporter_binaries
6768
path: output\windows_exporter-*.exe
@@ -84,7 +85,7 @@ jobs:
8485
8586
- name: Login to GitHub container registry
8687
if: ${{ github.event_name != 'pull_request' }}
87-
uses: docker/login-action@v2
88+
uses: docker/login-action@v3
8889
with:
8990
registry: ghcr.io
9091
username: ${{ github.repository_owner }}

0 commit comments

Comments
 (0)