Skip to content

Change icon and readme paths to absolute in common props paths (#16) #15

Change icon and readme paths to absolute in common props paths (#16)

Change icon and readme paths to absolute in common props paths (#16) #15

Workflow file for this run

# Publish CoreLib and Client Lib to ADO feed
name: Publish CoreLib and Client Lib to ADO feed
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet-version: ['7.0.x']
environment: publish-sm-preview-packages-to-ado
permissions:
id-token: write
steps:
- uses: actions/checkout@v2
with:
clean: true
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ matrix.dotnet-version }}
source-url: ${{ secrets.AZURE_ARTIFACTS_FEED_URL }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_DEVOPS_PAT }}
- name: Show Run and Attempt IDs
run: |
echo "Run ID: ${{ github.run_number }}"
echo "Attempt ID: ${{ github.run_attempt }}"
echo "Version: 0.0.${{ github.run_number }}.${{ github.run_attempt }}"
echo "VersionPrefix=0.0.${{ github.run_number }}.${{ github.run_attempt }}" >> $GITHUB_ENV
- name: Build and pack Client NuGet package
run: |
dotnet pack dotnet/ClientLib/ClientLib.csproj \
-c Release \
-v normal \
--version-suffix preview \
-p:VersionPrefix=${{ env.VersionPrefix }} \
--output dotnet/ClientLib/bin/Release
- name: Build and pack Core NuGet package
run: |
dotnet pack dotnet/CoreLib/CoreLib.csproj \
-c Release \
-v normal \
--version-suffix preview \
-p:VersionPrefix=${{ env.VersionPrefix }} \
--output dotnet/CoreLib/bin/Release
- name: Push Client NuGet package to ADO feed
run: dotnet nuget push dotnet/ClientLib/bin/Release/*.nupkg --api-key az
- name: Push Core NuGet package to ADO feed
run: dotnet nuget push dotnet/CoreLib/bin/Release/*.nupkg --api-key az