Adding README #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: [published, edited] | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
environment: nuget | |
env: | |
PACKAGE_VERSION: ${{ github.event.release.tag_name }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up .Net | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: | | |
6.0.x | |
7.0.x | |
- name: Package MySqlConnector | |
working-directory: ./Batec.Azure.Data.Extensions.MySqlConnector/src | |
run: dotnet pack -c Release -p:PackageVersion=${{ env.PACKAGE_VERSION }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output ../../package | |
- name: Package Npgsql | |
working-directory: ./Batec.Azure.Data.Extensions.Npgsql/src | |
run: dotnet pack -c Release -p:PackageVersion=${{ env.PACKAGE_VERSION }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output ../../package | |
- name: Package Pomelo.EntityFrameworkCore | |
working-directory: ./Batec.Azure.Data.Extensions.Pomelo.EntityFrameworkCore/src | |
run: | | |
dotnet restore -s ../../package -s https://api.nuget.org/v3/index.json | |
dotnet pack --no-restore -c Release -p:PackageVersion=${{ env.PACKAGE_VERSION }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output ../../package | |
- name: Package Npgsql.EntityFrameworkCore | |
working-directory: ./Batec.Azure.Data.Extensions.Npgsql.EntityFrameworkCore/src | |
run: | | |
dotnet restore -s ../../package -s https://api.nuget.org/v3/index.json | |
dotnet pack --no-restore -c Release -p:PackageVersion=${{ env.PACKAGE_VERSION }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output ../../package | |
- name: Publish MySqlConnector | |
working-directory: ./package | |
run: dotnet nuget push --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json ./Batec.Azure.Data.Extensions.MySqlConnector.${{ env.PACKAGE_VERSION }}.nupkg | |
- name: Publish Npgsql | |
working-directory: ./package | |
run: dotnet nuget push --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json ./Batec.Azure.Data.Extensions.Npgsql.${{ env.PACKAGE_VERSION }}.nupkg | |
- name: Publish Pomelo.EntityFrameworkCore | |
working-directory: ./package | |
run: dotnet nuget push --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json ./Batec.Azure.Data.Extensions.Pomelo.EntityFrameworkCore.${{ env.PACKAGE_VERSION }}.nupkg | |
- name: Publish Npgsql.EntityFrameworkCore | |
working-directory: ./package | |
run: dotnet nuget push --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json ./Batec.Azure.Data.Extensions.Npgsql.EntityFrameworkCore.${{ env.PACKAGE_VERSION }}.nupkg | |