Skip to content

Build AWS SDK credentials compatibility package #4

Build AWS SDK credentials compatibility package

Build AWS SDK credentials compatibility package #4

name: Build AWS SDK credentials compatibility package
on:
workflow_dispatch:
push:
branches:
- devtekve
tags:
- 'creds-awssdk-v*'
paths:
- 'src/EfficientDynamoDb.Credentials.AWSSDK/**'
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/devtekve' || startsWith(github.ref, 'refs/tags/creds-awssdk-v') }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.301
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build src/EfficientDynamoDb.Credentials.AWSSDK/EfficientDynamoDb.Credentials.AWSSDK.csproj --configuration Release --no-restore
- name: Nuget publish
run: |
dotnet pack -p:PackageId=DevTekVE.EfficientDynamoDb.Credentials.AWSSDK -p:Description="This is a fork for own development. Use at your own Risk. No guarantees are made." --no-build -c Release src/EfficientDynamoDb.Credentials.AWSSDK/EfficientDynamoDb.Credentials.AWSSDK.csproj -o .
dotnet nuget push *.nupkg -s https://api.nuget.org/v3/index.json -k ${{secrets.NUGET_API_KEY}} --skip-duplicate