diff --git a/.github/workflows/generate-sdks.yml b/.github/workflows/generate-sdks.yml index 1ae9397..bffc33f 100644 --- a/.github/workflows/generate-sdks.yml +++ b/.github/workflows/generate-sdks.yml @@ -172,13 +172,13 @@ jobs: mkdir -p .github/workflows/ printf '%s\n' 'name: Build' 'on:' ' push:' ' branches: [ main ]' ' pull_request:' ' branches: [ main ]' 'jobs:' ' build:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up dotnet' ' uses: actions/setup-dotnet@v3' ' with:' ' dotnet-version: "8.x"' ' - name: Install deps' ' run: dotnet restore' ' - name: Build' ' run: dotnet build' ' - name: Test' ' run: dotnet test' > .github/workflows/build.yml printf '%s\n' 'name: Build' 'on:' ' release:' ' types: [ created ]' 'jobs:' ' deploy:' ' runs-on: ubuntu-latest' ' steps:' ' - uses: actions/checkout@v4' ' - name: Set up dotnet' ' uses: actions/setup-dotnet@v3' ' with:' ' dotnet-version: "8.x"' ' env:' ' NUGET_AUTH_TOKEN: secrets.NUGET_TOKEN' ' - name: Build' ' run: dotnet build --configuration Release' ' - name: Package' ' run: dotnet pack --configuration Release' ' - name: Publish' ' run: dotnet nuget push src/Dofusdude.Api/bin/Release/Dofusdude.Api.${{steps.api-version-print.outputs.apiVersion}}.nupkg' > .github/workflows/publish.yml - sed -i 's/OpenAPI<\/Authors>/stelzo<\/Authors>/g' Dofusdude.Api.csproj - sed -i 's/GIT_USER_ID/dofusdude/g' Dofusdude.Api.csproj - sed -i 's/GIT_REPO_ID/dofusdude-csharp/g' Dofusdude.Api.csproj - sed -i 's/OpenAPI Library<\/AssemblyTitle>/Dofusdude API<\/AssemblyTitle>/g' Dofusdude.Api.csproj - sed -i 's/A library generated from a OpenAPI doc<\/Description>/A project for you - the developer.<\/Description>/g' Dofusdude.Api.csproj + sed -i 's/OpenAPI<\/Authors>/stelzo<\/Authors>/g' src/Dofusdude.Api/Dofusdude.Api.csproj + sed -i 's/GIT_USER_ID/dofusdude/g' src/Dofusdude.Api/Dofusdude.Api.csproj + sed -i 's/GIT_REPO_ID/dofusdude-csharp/g' src/Dofusdude.Api/Dofusdude.Api.csproj + sed -i 's/OpenAPI Library<\/AssemblyTitle>/Dofusdude API<\/AssemblyTitle>/g' src/Dofusdude.Api/Dofusdude.Api.csproj + sed -i 's/A library generated from a OpenAPI doc<\/Description>/A project for you - the developer.<\/Description>/g' src/Dofusdude.Api/Dofusdude.Api.csproj sed -i 's/\\"/"/g' README.md - sed -i 's/secrets.NUGET_TOKEN/\$\{\{secrets.NUGET_TOKEN\}\}/g' .github/workflows/publish.yml + sed -i 's/secrets.NUGET_TOKEN/\$\{\{secrets.NUGET_TOKEN\}\}/g' .github/workflows/publish.yml cd .. - name: Pushes to sdk repository