Skip to content

Commit

Permalink
Fix Publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenthorn committed Dec 23, 2020
1 parent 498ce7e commit 35f927d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ jobs:
runs-on: ${{ matrix.os }}

steps:
# - name: Setup dotnet
# uses: actions/setup-dotnet@v1
# with:
# dotnet-version: 3.x

- name: Checkout
uses: actions/checkout@v2

Expand All @@ -33,19 +28,21 @@ jobs:
tag=$(git describe --tags --abbrev=0)
release_name="SelloutReportingService-$tag-${{ matrix.target }}"
dotnet publish --runtime "${{ matrix.target }}" -c Release -o "${release_name}"
dotnet publish --runtime "${{ matrix.target }}" -c Release -o "release/${release_name}"
if [ "${{ matrix.target }}" == "win-x64" ]; then
7z a -tzip "${release_name}.zip" "${release_name}"
7z a -tzip "${release_name}.zip" "release/${release_name}"
else
tar czvf "${release_name}.tar.gz" "${release_name}"
tar czvf "${release_name}.tar.gz" "release/${release_name}"
fi
rm -r "$release_name"
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "SelloutReportingService*"
files: |
SelloutReportingService*.zip
SelloutReportingService*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 35f927d

Please sign in to comment.