Skip to content

Commit

Permalink
Create artifacts correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyiverson committed Dec 1, 2023
1 parent 49760d8 commit b43a3fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
- name: Install other dependencies
run: .\build\install-dependencies.ps1
shell: pwsh

- name: Get file suffix
id: suffix
run: if ($env:GITHUB_REF -match 'refs/tags/(.+)') { $Matches[1] } else { (Get-Date -Format "yyyyMMdd") }
shell: pwsh

- name: Run build-windows.bat
run: .\build\build-windows.bat
Expand All @@ -40,11 +45,10 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: ddi-lifecycle-all-outputs
path: ddi-lifecycle-all-outputs*.zip
path: ddi-lifecycle-all-outputs.zip

- name: Make package artifact
uses: actions/upload-artifact@v3
with:
name: ddi-lifecycle
path: |
ddi-lifecycle*.zip
path: ddi-lifecycle.zip
4 changes: 2 additions & 2 deletions build/build-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ echo Zip the artifact directories
ren ddi-lifecycle-all-outputs ddi-lifecycle-all-outputs-${suffix}
ren ddi-lifecycle ddi-lifecycle-${suffix}

7z a -tzip ddi-lifecycle-all-outputs-${suffix}.zip ddi-lifecycle-all-outputs-${suffix}\*
7z a -tzip ddi-lifecycle-${suffix}.zip ddi-lifecycle-${suffix}\*
7z a -tzip "ddi-lifecycle-all-outputs.zip" "ddi-lifecycle-all-outputs\*"
7z a -tzip "ddi-lifecycle.zip" "ddi-lifecycle\*"

0 comments on commit b43a3fe

Please sign in to comment.