Skip to content

Commit

Permalink
release.yml: Remove unnecessary artifact path shenanigans
Browse files Browse the repository at this point in the history
the .msi file is stored in the 'dist' directory
  • Loading branch information
Gatsik committed Aug 3, 2024
1 parent 2b6724b commit f6e6a5b
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,10 @@ jobs:
run: |
python setup.py bdist_msi
- name: Get Artifact Paths
id: artifact_paths
run: |
function getMsiPath {
$files = Get-ChildItem *.msi -Recurse | Select -First 1
(Get-Item $files).FullName
}
$WINDOWS_MSI = getMsiPath
Write-Host "MSI path: $WINDOWS_MSI"
$WINDOWS_MSI_NAME = (Get-Item $WINDOWS_MSI).Name
Write-Host "MSI name: $WINDOWS_MSI_NAME"
echo "WINDOWS_MSI=$WINDOWS_MSI" >> "$env:GITHUB_ENV"
echo "WINDOWS_MSI_NAME=$WINDOWS_MSI_NAME" >> "$env:GITHUB_ENV"
- name: Calculate checksum
id: checksum
run: |
Write-Host MSI path is: $env:WINDOWS_MSI
$MSI_SUM = $(Get-FileHash $env:WINDOWS_MSI).hash
$MSI_SUM = $(Get-FileHash dist/*).hash
Write-Host $MSI_SUM
echo "MSI_SUM=$MSI_SUM" >> "$env:GITHUB_ENV"
Expand All @@ -78,4 +63,4 @@ jobs:
body: "SHA256: ${{ env.MSI_SUM }}"
draft: true
prerelease: true
artifacts: ${{ env.WINDOWS_MSI }}
artifacts: dist/*

0 comments on commit f6e6a5b

Please sign in to comment.