Skip to content

Bump dotnet/sdk from 7.0.401-bullseye-slim to 7.0.403-bullseye-slim #184

Bump dotnet/sdk from 7.0.401-bullseye-slim to 7.0.403-bullseye-slim

Bump dotnet/sdk from 7.0.401-bullseye-slim to 7.0.403-bullseye-slim #184

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