Skip to content

run tests & deploy

run tests & deploy #21

name: run tests & deploy
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: '⚙️ Setup .NET Core'
uses: actions/setup-dotnet@v1
with:
dotnet-version: '7.0.x'
- name: '🧱 dotnet build'
run: 'dotnet build'
working-directory: './src/AzureStorageWrapper/AzureStorageWrapper'
- name: '🚨 dotnet test'
run: dotnet test --environment AZURE_STORAGE_CONNECTION_STRING="${{ secrets.AZURE_STORAGE_CONNECTION_STRING }}"
working-directory: './src/AzureStorageWrapper/AzureStorageWrapper.Tests'
- name: '📦 dotnet pack'
run: 'dotnet pack --output ../../package'
working-directory: './src/AzureStorageWrapper/AzureStorageWrapper'
- name: '🚀 nuget publish'
run: 'dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_ORG_API_KEY }} --source https://api.nuget.org/v3/index.json'
working-directory: './src/package'