Skip to content

chore: Bump Microsoft.Extensions.Hosting from 10.0.5 to 10.0.7 #430

chore: Bump Microsoft.Extensions.Hosting from 10.0.5 to 10.0.7

chore: Bump Microsoft.Extensions.Hosting from 10.0.5 to 10.0.7 #430

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
workflow_dispatch:
permissions:
packages: write
jobs:
build:
runs-on: ubuntu-latest
env:
DOTNET_NOLOGO: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
MINVERBUILDMETADATA: build.${{ github.run_attempt }}
steps:
- name: ☁ Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: 👷 .NET SDK
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.x"
- name: ⬇ Install dependencies
run: dotnet restore
- name: 🔨 Build
run: dotnet build --configuration Release --no-restore /p:MinVerBuildMetadata=${{ github.run_number }}
# # - name: Test
# # run: dotnet test --no-restore --verbosity normal
- name: 📦 Pack
run: dotnet pack ./src/FluentEmail.Graph/FluentEmail.Graph.csproj -c Release -o ./artifacts --no-build
- name: 🔑 Add GitHub packages to nuget sources
run: |
dotnet nuget add source \
--username ${{ github.actor }} \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github \
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
- name: 🚀 Publish to GitHub packages
run: dotnet nuget push "./artifacts/*.nupkg" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate