Skip to content

Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2 in /src/BikeshareCl… #179

Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2 in /src/BikeshareCl…

Bump Microsoft.NET.Test.Sdk from 17.7.0 to 17.7.2 in /src/BikeshareCl… #179

Workflow file for this run

name: CI / CD
on:
push:
workflow_dispatch:
jobs:
Build-and-publish:
name: Build-and-publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build BikeshareClient Pre-release packages
if: ${{ github.ref != 'refs/heads/master' }}
run: |
docker build --build-arg VERSION_SUFFIX="--version-suffix dev-${{ github.run_number }}" -t andmos/bikeshareclient .
- name: Build BikeshareClient Release packages
if: ${{ github.ref == 'refs/heads/master' }}
run: |
docker build -t andmos/bikeshareclient .
- name: Publish codecov result
run: |
docker run --rm -v $(pwd):/tmp -t andmos/bikeshareclient cp /app/BikeshareClient/TestBikeshareClient/coverage.opencover.xml /tmp
bash <(curl -s https://codecov.io/bash)
- name: Publish NuGet packages
run: |
docker run --rm -t andmos/bikeshareclient dotnet nuget push /app/output/BikeshareClient.*.nupkg -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate