migrer à dotnet 8, ajouter requêtes sur les précipitations #11
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: DirectNet.Net-Publish | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- DirectNet.Net/** | |
workflow_dispatch: | |
env: | |
name: PROJECT_PATH | |
value: DirectNet.Net/DirectNet.Net.csproj | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: dotnet build | |
run: dotnet build $PROJECT_PATH -c Release -o bin/Release | |
- name: Push the package to nuget.org | |
run: | | |
# Extract the version from the csproj file | |
$VERSION=@(([xml] (Get-Content .\DirectNet.Net\DirectNet.Net.csproj -Encoding utf8)).Project.PropertyGroup.Version)[1] | |
# Publish the package to nuget.org | |
dotnet nuget push ./bin/Release/DirectNet.Net.$VERSION.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.DirectNetAPIKey }} |