Skip to content

Commit

Permalink
Update build.yml (#30)
Browse files Browse the repository at this point in the history
* Update build.yml

* Update version.json
  • Loading branch information
zaafar committed Sep 21, 2023
1 parent aedcf8c commit d633b22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ jobs:
- name: Publish untagged source package to MyGet
if: matrix.os == 'windows-latest' && github.ref == 'refs/heads/master' && matrix.architecture == 'x64'
run: dotnet nuget push bin\Packages\Release\*.nupkg -s https://www.myget.org/F/mellinoe/api/v3/index.json --api-key ${{secrets.MYGET_KEY}}
# error can be fixed afterwards and job can be re-triggered
continue-on-error: true

- name: Publish tagged source package release to nuget.org
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/') && matrix.architecture == 'x64'
run: dotnet nuget push bin\Packages\Release\*.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_KEY}}
# error can be fixed afterwards and job can be re-triggered
continue-on-error: true

- name: Build ${{ github.event.inputs.ReleaseType || 'Release' }}
run: |
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.89.11",
"version": "1.89.9",
"publicReleaseRefSpec": [
"^refs/tags/v\\d+\\.\\d+" // we also release tags starting with vN.N
],
Expand Down

0 comments on commit d633b22

Please sign in to comment.