File tree 2 files changed +30
-0
lines changed
2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' NuGet Deployment'
2
+
3
+ on :
4
+ workflow_call :
5
+ workflow_dispatch :
6
+
7
+
8
+ jobs :
9
+ deployment :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/download-artifact@v3
13
+ with :
14
+ name : artifact
15
+ - name : Display structure of downloaded files
16
+ run : ls -R
17
+ - name : Push
18
+ run : dotnet nuget push ${{ github.workspace}}/artifact/*.nupkg --source https://nuget.pkg.github.com/ctolkien/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
19
+ env :
20
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
21
+ - name : Create GitHub Release
22
+ run : " gh release create 'Release ${{ env.ReleaseName }}' --generate-notes"
23
+ env :
24
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
25
+
Original file line number Diff line number Diff line change
1
+ {
2
+ "yaml.schemas" : {
3
+ "https://json.schemastore.org/github-workflow.json" : " file:///c%3A/Users/ChadTolkien/source/Slugify/.github/workflows/deploy.yml"
4
+ }
5
+ }
You can’t perform that action at this time.
0 commit comments