Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Feb 16, 2022
2 parents 5574114 + 2c78d84 commit 372c24d
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions .github/workflows/GenerateRelease-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,29 +53,34 @@ jobs:
run: |
cd "${{github.workspace}}/STAGING"
foreach($file in $((dir "${{github.workspace}}/publish" -recurse | where {$_.extension -in ".exe",".dll"}).Fullname)){ mv $file ./ }
Get-ChildItem -Recurse
- name: Create Pre-Release Archive
if: ${{ steps.get_version.outputs.PRERELEASE == true }}
run: Compress-Archive ./*.exe "VolumeControl-${{ steps.get_version.outputs.TAG }}.zip"

- name: Create Release Archive
if: ${{ steps.get_version.outputs.PRERELEASE != true }}
run: Compress-Archive ./*.exe "VolumeControl-${{ steps.get_version.outputs.TAG }}-PreRelease.zip"

- name: Stage Archive
run: mv "./*.zip" "${{github.workspace}}"

- name: 'Upload Build Artifact'
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: build-windows
path: "${{github.workspace}}/VolumeControl*.zip"
path: '${{github.workspace}}/STAGING/*'


create-release:
needs: build-release
runs-on: ubuntu-latest

steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
with:
path: ${{github.workspace}}

- run: ls -lAghR

- name: 'Create Release'
uses: softprops/action-gh-release@v1
with:
draft: true
prerelease: ${{steps.get_version.outputs.PRERELEASE}}
tag_name: ${{steps.get_version.outputs.VERSION}}
fail_on_unmatched_files: true
files: |
${{github.workspace}}/*.zip
${{github.workspace}}/build-windows/VolumeControl.exe
${{github.workspace}}/build-windows/VolumeControlCLI.exe

0 comments on commit 372c24d

Please sign in to comment.