Skip to content

Commit

Permalink
dotnet workload restore
Browse files Browse the repository at this point in the history
  • Loading branch information
danzuep committed Dec 5, 2023
1 parent 33ec0a5 commit 344dcdf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:
restore-keys: nugetpackages-${{ runner.os }}

- name: Publish Android package
run: dotnet publish $projectFile -c $configuration -f $targetFramework /p:Version=$buildVersion /p:AndroidPackageFormats=$androidPackageFormats -o $publishOutputFolder --nologo;
run: |
dotnet workload restore;
dotnet publish $projectFile -c $configuration -f $targetFramework /p:Version=$buildVersion /p:AndroidPackageFormats=$androidPackageFormats -o $publishOutputFolder --nologo;
env:
projectFile: '${{ inputs.projectFile }}'
buildVersion: '${{ inputs.version }}'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ jobs:
majorMinorPatch: ${{ steps.gitversion.outputs.majorMinorPatch }}
preReleaseLabel: ${{ steps.gitversion.outputs.preReleaseLabel }}
commitDate: ${{ steps.gitversion.outputs.commitDate }}
projectName: $projectName
projectFile: $projectFile
projectName: "$projectName"
projectFile: "$projectFile"

steps:
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
Expand Down Expand Up @@ -107,4 +107,4 @@ jobs:
echo 'Full Semantic Version: ${{ steps.gitversion.outputs.fullSemVer }}' >> $GITHUB_STEP_SUMMARY
echo 'Pre-release Label: ${{ steps.gitversion.outputs.preReleaseLabel }}' >> $GITHUB_STEP_SUMMARY
env:
workflowName: '$projectName version ${{ steps.gitversion.outputs.semVer }}'
workflowName: '"$projectName" version ${{ steps.gitversion.outputs.semVer }}'
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ jobs:
uses: ./.github/workflows/_publish.yml
with:
projectName: ${{ needs.version.outputs.projectName }}
projectFile: ${{ needs.version.outputs.projectFiles }}
projectFile: ${{ needs.version.outputs.projectFile }}
version: ${{ needs.version.outputs.semVer }}
secrets: inherit

0 comments on commit 344dcdf

Please sign in to comment.