Skip to content

Commit

Permalink
chore(release): Add step to fetch from remote (#1589)
Browse files Browse the repository at this point in the history
Reverts #1588
  • Loading branch information
michaelkro authored Mar 28, 2024
1 parent 06635f6 commit cb031e2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release-windows-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,20 @@ jobs:
with:
fetch-depth: 0

- name: Output latest tag
id: latest-tag
run: |
$tag = git describe --tags $(git rev-list --tags --max-count=1)
Write-Host "Latest tag - before: $tag"
git fetch origin
git fetch --tags
$latestTag = git describe --tags $(git rev-list --tags --max-count=1)
Write-Host "Latest tag - after: $latestTag"
- name: Add msbuild to PATH
uses: microsoft/[email protected]

Expand All @@ -34,6 +48,7 @@ jobs:
- name: Compile installer
run: |
$LATEST_VERSION = git describe --tags $(git rev-list --tags --max-count=1) | ForEach-Object { $_ -replace 'v', '' }
Write-Host "(Compile installer) Latest version $LATEST_VERSION"
msbuild .\build\package\msi\NewRelicCLIInstaller.sln -p:Version=$LATEST_VERSION
- name: Create PFX certificate
Expand Down

0 comments on commit cb031e2

Please sign in to comment.