Skip to content

Commit 2ea7d8c

Browse files
authored
Update patch.yml
1 parent c1270ee commit 2ea7d8c

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/patch.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: patch
22

3-
on: workflow_dispatch
4-
5-
#on:
6-
#schedule:
3+
on:
4+
workflow_dispatch
5+
#schedule:
76
# - cron: "0 13 * * 1"
87

98
jobs:
@@ -48,7 +47,7 @@ jobs:
4847
- run: |
4948
git commit -am "Test ${{env.newTag}}"
5049
git push
51-
- run: git log ${{needs.setup-outputs.outputs.currentTag}}..master --format=format:'- [%s](https://github.com/TiLied/CSharpToJavaScript/commit/%H)%n' --output=./realease.txt
50+
- run: git log ${{needs.setup-outputs.outputs.currentTag}}..master --format=format:'- [%s](https://github.com/TiLied/CSharpToJavaScript/commit/%H)%n' --output=./release.txt
5251
- name: Create Release
5352
id: create_release
5453
uses: actions/create-release@v1
@@ -57,12 +56,19 @@ jobs:
5756
with:
5857
tag_name: ${{ env.newTag }}
5958
release_name: ${{ env.newTag }}
60-
body_path: ./realease.txt
61-
draft: true
62-
prerelease: true
59+
body_path: ./release.txt
60+
draft: false
61+
prerelease: false
6362
#update release notes in csproj
64-
#build nuget package
65-
#upload
63+
- name: Setup .NET
64+
uses: actions/setup-dotnet@v1
65+
with:
66+
dotnet-version: 10.0.x
67+
- name: Generate NuGet package
68+
run: dotnet pack --configuration Release --output packages
69+
- name: Publish NuGet package
70+
#ADD API KEY!!!!
71+
run: dotnet nuget push packages/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
6672
- name: Environments
6773
run: |
6874
echo $newTag

0 commit comments

Comments
 (0)