Skip to content

Commit

Permalink
Improve CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chkr1011 committed May 17, 2024
1 parent f3d3b70 commit d3f14e0
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
**/*.snupkg
test:
needs: build
runs-on: ubuntu latest

steps:
Expand All @@ -61,7 +60,7 @@ jobs:
dotnet-version: |
6.0.x
- name: Download build artifacts
- name: Download nuget packages
uses: actions/download-artifact@v4
with:
name: nugets
Expand All @@ -85,6 +84,25 @@ jobs:
--azure-key-vault-certificate "${{ secrets.KEY_VAULT_CERTIFICATE_ID }}" `
--azure-key-vault-url "${{ secrets.KEY_VAULT_URL }}"
- name: Upload signed nuget packages
uses: actions/upload-artifact@v4
with:
name: signed-nugets
path: |
**/*.nupkg
**/*.snupkg
publish:
if: ${{ github.event_name == 'push' }}
needs: sign
runs-on: ubuntu-latest

steps:
- name: Download signed nuget packages
uses: actions/download-artifact@v4
with:
name: signed-nugets
path: nugets

- name: Publish MyGet nugets
if: ${{ github.event_name == 'push' }}
run: dotnet nuget push ${{ github.workspace }}\nugets\**/*.nupkg -k ${{ secrets.MYGET_API_KEY }} -s https://www.myget.org/F/mqttnet/api/v3/index.json --skip-duplicate

0 comments on commit d3f14e0

Please sign in to comment.