Skip to content

Commit

Permalink
Update upload assets
Browse files Browse the repository at this point in the history
  • Loading branch information
dassjosh committed Mar 26, 2024
1 parent 300d269 commit ad17e8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ jobs:

- name: Upload Release Assets
run: |
TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///')
gh release upload $TAG src/bin/*.dll
$TAG=($env:GITHUB_REF -replace 'refs/tags/', '')
$dllPath = Get-ChildItem -Path src/bin -Filter *.dll -File | Select-Object -ExpandProperty FullName
gh release upload $TAG $dllPath
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: dotnet --version

- name: Set VERSION variable from tag
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $env:GITHUB_ENV

- name: Download References
shell: pwsh
Expand All @@ -47,7 +47,8 @@ jobs:

- name: Upload Release Assets
run: |
TAG=$(echo "${GITHUB_REF}" | sed 's/refs\/tags\///')
gh release upload $TAG src/bin/*.dll
$TAG=($env:GITHUB_REF -replace 'refs/tags/', '')
$dllPath = Get-ChildItem -Path src/bin -Filter *.dll -File | Select-Object -ExpandProperty FullName
gh release upload $TAG $dllPath
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ad17e8d

Please sign in to comment.