Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ekolis authored Jan 30, 2021
1 parent 2d3a614 commit 25d99f3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: dotnet-tests-report
- name: Test
uses: zyborg/[email protected]
with:
project_path: FrEee.Tests/FrEee.Tests.csproj
Expand All @@ -35,24 +35,24 @@ jobs:
skip_check_run: false
set_check_status_from_test_outcome: false # true = fail the build if tests fail
#trx_xsl_path: # optional
- name: Prepare Artifact Files
- name: Prepare artifact files
shell: bash
run: |
mkdir Artifact
mkdir Artifact/FrEee.WinForms
mkdir Artifact/FrEee.WinForms/FrEee
mv FrEee.WinForms/bin/Release/net5.0-windows/* Artifact/FrEee.WinForms/FrEee/
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: FrEee.WinForms.zip
path: Artifact/FrEee.WinForms/FrEee
- name: Create Release Tag
- name: Create release tag
id: createReleaseTag
uses: 2428392/[email protected]
with:
stringToTruncate: ${{github.sha}}
maxLength: 10
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: FrEee.WinForms-${{steps.createReleaseTag.outputs.string}}
path: Artifact/FrEee.WinForms
- name: Create Release
id: createRelease
uses: actions/create-release@v1
Expand All @@ -74,7 +74,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.createRelease.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: FrEee.WinForms.zip
asset_name: FrEee.WinForms.zip
upload_url: "${{ steps.createRelease.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: FrEee.WinForms-${{steps.createReleaseTag.outputs.string}}
asset_name: FrEee.WinForms-${{steps.createReleaseTag.outputs.string}}
asset_content_type: application/zip

0 comments on commit 25d99f3

Please sign in to comment.