Skip to content

Commit

Permalink
use upload/download artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredLange committed Sep 23, 2023
1 parent 2e96e19 commit 4f4f98f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# run: dotnet test --configuration Release --no-restore --no-build --verbosity normal

- name: Create NuGet package
id: publish
id: create-package
run: |
dotnet pack --configuration Release --no-build --no-restore
NUPKG_PATH=$(find . -name '*.nupkg' -type f -execdir readlink -f {} \;)
Expand All @@ -59,10 +59,16 @@ jobs:
- name: print env variable
id: print-env
env:
NUGET_PACKAGE_PATH: ${{ steps.publish.outputs.NUGET_PACKAGE_PATH }}
NUGET_PACKAGE_PATH: ${{ steps.create-package.outputs.NUGET_PACKAGE_PATH }}
run: |
echo "NUGET_PACKAGE_PATH=$NUGET_PACKAGE_PATH"
- name: upload artifact
uses: actions/upload-artifact@v3
with:
name: nuget-package
path: ${{ steps.create-package.outputs.NUGET_PACKAGE_PATH }}

deploy:
needs:
- changes
Expand All @@ -71,6 +77,12 @@ jobs:
if: ${{ needs.changes.outputs.version-changed == 'true' }}
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && github.event.head_commit.modified || contains('Directory.Build.props') }}
steps:
- name: download artifact
uses: actions/download-artifact@v3
with:
name: nuget-package
path: ${{ github.workspace }}

- name: Publish NuGet package
env:
NUGET_PACKAGE_PATH: ${{ needs.build-and-test.outputs.nuget-package-path }}
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"editor.indentSize": "tabSize",
"github-actions.workflows.pinned.refresh.enabled": true,
"github-actions.workflows.pinned.workflows": [
"ci.yml"
"ci.yml",
".github/workflows/ci.yml"
],
}
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
incrementing the minor version will do. [Manfred, 19sep2023] -->
<Project>
<PropertyGroup>
<Version>1.11.99</Version>
<Version>1.11.98</Version>
</PropertyGroup>
</Project>

0 comments on commit 4f4f98f

Please sign in to comment.