Browse Source

Merge pull request #60 from Ujinjinjin/ci-fix-2021-01-14

Update nuget-release.yml
pull/63/head
Sebastiano Mandalà GitHub 4 years ago
parent
commit
1ce56f22f6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 12 deletions
  1. +7
    -11
      .github/workflows/nuget-release.yml
  2. +1
    -1
      Svelto.ECS/Svelto.ECS.csproj

+ 7
- 11
.github/workflows/nuget-release.yml View File

@@ -17,7 +17,6 @@ jobs:
env:
PKG_NAME: Svelto.ECS
ECS_VERSION_JSON: Svelto.ECS/version.json
COMMON_VERSION_JSON: Svelto.Common/version.json

runs-on: ubuntu-latest

@@ -37,33 +36,30 @@ jobs:
run: dotnet new sln -n "${PKG_NAME}" -o temp/
# Svelto.Common
- name: get Svelto.Common version
run: python3 upm-preparator/version.py --version-file "${COMMON_VERSION_JSON}" --env-file "${GITHUB_ENV}"

- name: create temp Svelto.Common directory
run: mkdir "temp/com.sebaslab.svelto.common@${PKG_VERSION}"
run: mkdir "temp/com.sebaslab.svelto.common"
- name: copy Svelto.Common files to temp directory
run: cp -r Svelto.Common/* "temp/com.sebaslab.svelto.common@${PKG_VERSION}"
run: cp -r Svelto.Common/* "temp/com.sebaslab.svelto.common"
- name: add Svelto.Common to solution
run: dotnet sln "temp/${PKG_NAME}.sln" add "temp/com.sebaslab.svelto.common@${PKG_VERSION}/Svelto.Common.csproj"
run: dotnet sln "temp/${PKG_NAME}.sln" add "temp/com.sebaslab.svelto.common/Svelto.Common.csproj"
# Svelto.ECS
- name: get Svelto.ECS version
run: python3 upm-preparator/version.py --version-file "${ECS_VERSION_JSON}" --env-file "${GITHUB_ENV}"

- name: create temp Svelto.ECS directory
run: mkdir "temp/com.sebaslab.svelto.ecs@${PKG_VERSION}"
run: mkdir "temp/com.sebaslab.svelto.ecs"
- name: copy Svelto.ECS files to temp directory
run: cp -r Svelto.ECS/* "temp/com.sebaslab.svelto.ecs@${PKG_VERSION}"
run: cp -r Svelto.ECS/* "temp/com.sebaslab.svelto.ecs"
- name: add Svelto.ECS to solution
run: dotnet sln "temp/${PKG_NAME}.sln" add "temp/com.sebaslab.svelto.ecs@${PKG_VERSION}/Svelto.ECS.csproj"
run: dotnet sln "temp/${PKG_NAME}.sln" add "temp/com.sebaslab.svelto.ecs/Svelto.ECS.csproj"

- name: build nuget package
run: dotnet pack /p:Version=${PKG_VERSION} -o . "temp/com.sebaslab.svelto.ecs@${PKG_VERSION}/Svelto.ECS.csproj"
run: dotnet pack /p:Version=${PKG_VERSION} -o . "temp/com.sebaslab.svelto.ecs/Svelto.ECS.csproj"

- name: publish nuget package
run: dotnet nuget push ${{ env.PKG_NAME }}.${{ env.PKG_VERSION }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

+ 1
- 1
Svelto.ECS/Svelto.ECS.csproj View File

@@ -19,7 +19,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\com.sebaslab.svelto.common@3.1.0\Svelto.Common.csproj" />
<ProjectReference Include="..\com.sebaslab.svelto.common\Svelto.Common.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Memory" Version="4.5.2" />


Loading…
Cancel
Save