Skip to content

Commit ac2c43c

Browse files
Update deploy-nuget.yml
1 parent 3d10527 commit ac2c43c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

.github/workflows/deploy-nuget.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ jobs:
3535
- name: Build
3636
run: dotnet build "${{ env.Solution_Name }}" --configuration Release --no-restore
3737

38-
# - name: Run tests
39-
# run: dotnet test "${{ env.Test_Project_Path }}" --configuration Release --logger "console;verbosity=detailed" --logger "console;verbosity=detailed" --filter "TestCategory!=Long-Running"
40-
# env:
41-
# FinanceNet__AlphaVantageApiKey: ${{ secrets.ALPHAVANTAGEAPIKEY }}
38+
- name: Run tests
39+
run: dotnet test "${{ env.Test_Project_Path }}" --configuration Release --logger "console;verbosity=detailed" --logger "console;verbosity=detailed" --filter "TestCategory!=Long-Running"
40+
env:
41+
FinanceNet__AlphaVantageApiKey: ${{ secrets.ALPHAVANTAGEAPIKEY }}
4242

4343
- name: Pack NuGet Package
4444
run: dotnet pack "${{ env.Nuget_Project_Path }}" --configuration Release --no-build --output ./nupkg
4545

46-
# - name: Publish to NuGet
47-
# if: success()
48-
# env:
49-
# NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
50-
# run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY
46+
- name: Publish to NuGet
47+
if: success()
48+
env:
49+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
50+
run: dotnet nuget push ./nupkg/*.nupkg --source https://api.nuget.org/v3/index.json --api-key $NUGET_API_KEY
5151

5252
- name: Extract Version
5353
id: get_version
@@ -64,19 +64,19 @@ jobs:
6464
git config --global user.email "[email protected]"
6565
git remote set-url origin https://x-access-token:${{ secrets.GH_APIKEY }}@github.com/thorstenalpers/Finance.NET.git
6666
67-
# - name: Create Git Tag
68-
# run: |
69-
# git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}"
70-
# git push origin "v${{ env.VERSION }}"
67+
- name: Create Git Tag
68+
run: |
69+
git tag -a "v${{ env.VERSION }}" -m "Release v${{ env.VERSION }}"
70+
git push origin "v${{ env.VERSION }}"
7171
72-
# - name: Create GitHub Release
73-
# uses: actions/create-release@v1
74-
# env:
75-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
# with:
77-
# tag_name: "v${{ env.VERSION }}"
78-
# release_name: "Finance.NET ${{ env.VERSION }}"
79-
# body_path: ./release-notes/v${{ env.VERSION }}.md
72+
- name: Create GitHub Release
73+
uses: actions/create-release@v1
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76+
with:
77+
tag_name: "v${{ env.VERSION }}"
78+
release_name: "Finance.NET ${{ env.VERSION }}"
79+
body_path: ./release-notes/v${{ env.VERSION }}.md
8080

8181
- name: Add GitHub Packages NuGet Source
8282
run: |

0 commit comments

Comments
 (0)