Skip to content

Commit

Permalink
.net70
Browse files Browse the repository at this point in the history
  • Loading branch information
zabbius authored and mfilippov committed May 12, 2023
1 parent 83904d7 commit fafa6f5
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install dependencies
working-directory: src
Expand All @@ -42,6 +42,10 @@ jobs:
run: dotnet publish --framework net6.0 --configuration Release --no-restore
working-directory: src/RefasmerExe

- name: Publish net7.0
run: dotnet publish --framework net7.0 --configuration Release --no-restore
working-directory: src/RefasmerExe

- name: Zip net461
run: zip Refasmer.net461.1.0.${{ github.run_number }}.zip *
working-directory: src/RefasmerExe/bin/Release/net461
Expand All @@ -57,4 +61,8 @@ jobs:
- name: Zip net6.0
run: zip Refasmer.net60.1.0.${{ github.run_number }}.zip *
working-directory: src/RefasmerExe/bin/Release/net6.0/publish


- name: Zip net7.0
run: zip Refasmer.net70.1.0.${{ github.run_number }}.zip *
working-directory: src/RefasmerExe/bin/Release/net7.0/publish

20 changes: 19 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
dotnet-version: 7.0.x

- name: Install dependencies
working-directory: src
Expand All @@ -40,6 +40,10 @@ jobs:
run: dotnet publish --framework net6.0 --configuration Release --no-restore
working-directory: src/RefasmerExe

- name: Publish net7.0
run: dotnet publish --framework net7.0 --configuration Release --no-restore
working-directory: src/RefasmerExe

- name: Zip net461
run: zip Refasmer.net461.1.0.${{ github.run_number }}.zip *
working-directory: src/RefasmerExe/bin/Release/net461
Expand All @@ -56,6 +60,10 @@ jobs:
run: zip Refasmer.net60.1.0.${{ github.run_number }}.zip *
working-directory: src/RefasmerExe/bin/Release/net6.0/publish

- name: Zip net7.0
run: zip Refasmer.net70.1.0.${{ github.run_number }}.zip *
working-directory: src/RefasmerExe/bin/Release/net7.0/publish

- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand Down Expand Up @@ -117,6 +125,16 @@ jobs:
asset_name: Refasmer.net60.1.0.${{ github.run_number }}.zip
asset_content_type: application/zip

- name: Upload zip net7.0
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: src/RefasmerExe/bin/Release/net7.0/publish/Refasmer.net70.1.0.${{ github.run_number }}.zip
asset_name: Refasmer.net70.1.0.${{ github.run_number }}.zip
asset_content_type: application/zip

- name: Upload cli tool
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit fafa6f5

Please sign in to comment.