Skip to content

Commit

Permalink
- Try to add version
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Dec 1, 2020
1 parent bd22251 commit 9297bd0
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,22 @@ jobs:


- name: Get version info
id: version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}

shell: bash



- name: Build with dotnet
run: dotnet build OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }}
run: dotnet build OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }}

- name: Test with dotnet
run: dotnet test OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }}
run: dotnet test OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }}



- name: Publish with dotnet win-x64
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime win-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-win-x64
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime win-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-win-x64

- name: Zipping win-x64
uses: papeloto/action-zip@v1
Expand All @@ -51,7 +52,7 @@ jobs:
dest: OpenDirectoryDownloader-win-x64.zip

- name: Publish with dotnet win-x64 (self-contained)
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime win-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-win-x64-self-contained
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime win-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-win-x64-self-contained

- name: Zipping win-x64 (self-contained)
uses: papeloto/action-zip@v1
Expand All @@ -63,7 +64,7 @@ jobs:

- name: Publish with dotnet linux-x64
run: |
dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime linux-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-x64
dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime linux-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-x64
chmod +x ./OpenDirectoryDownloader-linux-x64/OpenDirectoryDownloader
- name: Zipping linux-x64
Expand All @@ -73,7 +74,7 @@ jobs:
dest: OpenDirectoryDownloader-linux-x64.zip

- name: Publish with dotnet linux-x64 (self-contained)
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime linux-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-linux-x64-self-contained
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime linux-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-linux-x64-self-contained

- name: Zipping linux-x64 (self-contained)
uses: papeloto/action-zip@v1
Expand All @@ -94,7 +95,7 @@ jobs:
- name: Publish with dotnet linux-arm64
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime linux-arm64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-arm64
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime linux-arm64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-arm64

- name: Zipping linux-arm64
uses: papeloto/action-zip@v1
Expand All @@ -103,7 +104,7 @@ jobs:
dest: OpenDirectoryDownloader-linux-arm64.zip

- name: Publish with dotnet linux-arm64 (self-contained)
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime linux-arm64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-linux-arm64-self-contained
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime linux-arm64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-linux-arm64-self-contained

- name: Zipping linux-arm64 (self-contained)
uses: papeloto/action-zip@v1
Expand All @@ -114,7 +115,7 @@ jobs:


- name: Publish with dotnet linux-arm
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime linux-arm --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-arm
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime linux-arm --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-linux-arm

- name: Zipping linux-arm
uses: papeloto/action-zip@v1
Expand All @@ -123,7 +124,7 @@ jobs:
dest: OpenDirectoryDownloader-linux-arm.zip

- name: Publish with dotnet linux-arm (self-contained)
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime linux-arm --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-linux-arm-self-contained
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime linux-arm --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-linux-arm-self-contained

- name: Zipping linux-arm (self-contained)
uses: papeloto/action-zip@v1
Expand All @@ -134,7 +135,7 @@ jobs:


- name: Publish with dotnet osx-x64
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime osx-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-osx-x64
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime osx-x64 --no-self-contained -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-osx-x64

- name: Zipping osx-x64
uses: papeloto/action-zip@v1
Expand All @@ -143,7 +144,7 @@ jobs:
dest: OpenDirectoryDownloader-osx-x64.zip

- name: Publish with dotnet osx-x64 (self-contained)
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.version.outputs.VERSION }} --framework net5.0 --runtime osx-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-osx-x64-self-contained
run: dotnet publish OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net5.0 --runtime osx-x64 --self-contained=true -p:PublishSingleFile=true -p:PublishTrimmed=true -p:IncludeNativeLibrariesForSelfExtract=true --output ./OpenDirectoryDownloader-osx-x64-self-contained

- name: Zipping osx-x64 (self-contained)
uses: papeloto/action-zip@v1
Expand Down

0 comments on commit 9297bd0

Please sign in to comment.