Skip to content

Commit bdf2309

Browse files
author
Alex McCool
authored
adding a release artifact for the nupkg files (#38)
* adding a release artifact for the nupkg files * dont use the template language * setup version? * testing w/o master constraint * upload release artifacts workaround * ..... * forget the actions, Ill just do it manually
1 parent ea88338 commit bdf2309

File tree

1 file changed

+33
-2
lines changed

1 file changed

+33
-2
lines changed

.github/workflows/dotnetcore.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
steps:
1818
- uses: actions/checkout@v2
1919
- name: Setup .NET Core SDK
20-
uses: actions/setup-dotnet@v1.4.0
20+
uses: actions/setup-dotnet@v1
2121
with:
22-
dotnet-version: 3.1.201
22+
dotnet-version: '3.1.x'
2323

2424
- name: Output Run ID
2525
run: echo ${{ github.run_id }}
@@ -61,3 +61,34 @@ jobs:
6161
release_name: ${{ env.MAJOR_MINOR_BUILD_VERSION }}.${{ github.run_number }}
6262
draft: true
6363
prerelease: true
64+
# - name: Upload
65+
# uses: actions/github-script@v3
66+
# with:
67+
# github-token: ${{secrets.GITHUB_TOKEN}}
68+
# script: |
69+
# console.log('environment', process.versions);
70+
# const path = require('path');
71+
# const fs = require('fs');
72+
# const release_id = '${{ needs.create_release.outputs.id }}';
73+
# for (let file of await fs.readdirSync('./')) {
74+
# if (path.extname(file) === '.nupkg') {
75+
# console.log('uploadReleaseAsset', file);
76+
# await github.repos.uploadReleaseAsset({
77+
# owner: context.repo.owner,
78+
# repo: context.repo.repo,
79+
# release_id: release_id,
80+
# name: file,
81+
# data: await fs.readFileSync(`./${file}`)
82+
# });
83+
# }
84+
# }
85+
# - name: Upload Release Asset
86+
# id: upload-release-asset
87+
# uses: actions/upload-release-asset@v1
88+
# env:
89+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
90+
# with:
91+
# 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
92+
# asset_path: '**/AM.Extensions.Logging.ElasticSearch.*.nupkg'
93+
# asset_name: nupkg
94+
# asset_content_type: application/zip

0 commit comments

Comments
 (0)