microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
.github/workflows/publish.yml
33lines · modecode
| 1 | name: Publish |
| 2 | |
| 3 | on: |
| 4 | workflow_call: |
| 5 | workflow_dispatch: |
| 6 | push: |
| 7 | branches: ['main'] |
| 8 | |
| 9 | permissions: read-all |
| 10 | |
| 11 | jobs: |
| 12 | build-test-lint: |
| 13 | name: Build & Test & Lint |
| 14 | uses: ./.github/workflows/build-test-lint.yml |
| 15 | permissions: read-all |
| 16 | publish: |
| 17 | name: Publish |
| 18 | needs: build-test-lint |
| 19 | runs-on: ubuntu-latest |
| 20 | permissions: |
| 21 | contents: read |
| 22 | packages: write |
| 23 | steps: |
| 24 | - name: Checkout |
| 25 | uses: actions/checkout@v4 |
| 26 | - name: Setup .NET |
| 27 | uses: actions/setup-dotnet@v4 |
| 28 | with: |
| 29 | dotnet-version: '9.0' |
| 30 | - name: Pack |
| 31 | run: dotnet pack |
| 32 | - name: Publish |
| 33 | run: dotnet nuget push Libraries/**/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/microsoft/index.json --skip-duplicate |