You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- name: zip artifact # This would actually build your project, using zip for an example artifact
52
110
run: |
53
111
zip -r configurationmigrationtool${{ github.ref_name }}.zip configurationmigrationtool
@@ -61,7 +119,25 @@ jobs:
61
119
release_name: Release ${{ github.ref }}
62
120
draft: false
63
121
prerelease: false
64
-
- name: Upload Release Asset
122
+
- name: Get nupkg path
123
+
id: get_nupkg_path
124
+
run: |
125
+
NUPKG_PATH=$(ls ./xtb/*.nupkg | head -n 1)
126
+
FILENAME=$(basename "$NUPKG_PATH")
127
+
echo "nupkg_path=$NUPKG_PATH" >> "$GITHUB_OUTPUT"
128
+
echo "filename=$FILENAME" >> "$GITHUB_OUTPUT" # Make it available to subsequent steps
129
+
130
+
- name: Upload NuGet Package Release Asset
131
+
id: upload-nuget-release-asset
132
+
uses: actions/upload-release-asset@v1
133
+
env:
134
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
135
+
with:
136
+
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
Copy file name to clipboardExpand all lines: src/Dataverse.ConfigurationMigrationTool/Dataverse.ConfigurationMigrationTool.XrmToolBox/Properties/AssemblyInfo.cs
0 commit comments