-
Notifications
You must be signed in to change notification settings - Fork 48
31 lines (29 loc) · 1.61 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
release:
types: [published]
name: Upload Release Asset
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Publish
run: |
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/linux-x64-framework-dependent.pubxml
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/linux-x64-self-contained.pubxml
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/osx-x64-framework-dependent.pubxml
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/osx-x64-self-contained.pubxml
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/win-x64-framework-dependent.pubxml
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/win-x64-net472.pubxml
dotnet publish -f netcoreapp3.1 AppDynamics.Dexter.Core.csproj -p:PublishProfile=Properties/PublishProfiles/win-x64-self-contained.pubxml
- name: Zip
run: |
for file in bin/Publish/*; do zip -r ${file%.*}.zip $file; done
- name: Upload
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag_name="${GITHUB_REF##*/}"
hub release edit $(find bin/Publish -type f -name "*.zip" -printf "-a %p ") -m "" "$tag_name"