Skip to content

Commit

Permalink
Update main.yml (#928)
Browse files Browse the repository at this point in the history
* Update main.yml

* Update .github/workflows/main.yml

* Update .github/workflows/main.yml
  • Loading branch information
shargon authored Feb 21, 2024
1 parent 04364bc commit 263aaf5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,21 @@ jobs:
- name : Build (Neo)
run: |
dotnet build ./neo --version-suffix ${{ env.VERSION_SUFFIX_NEO }}
- name : Replace Neo reference by package in Neo.SmartContract.Testing
run: |
dotnet remove ./src/Neo.SmartContract.Testing/Neo.SmartContract.Testing.csproj reference '..\..\neo\src\Neo\Neo.csproj'
dotnet add ./src/Neo.SmartContract.Testing/Neo.SmartContract.Testing.csproj package 'Neo' --version ${{ env.VERSION_SUFFIX_NEO }}
- name : Build (Neo.SmartContract.Testing)
run: |
dotnet build ./src/Neo.SmartContract.Testing --no-dependencies --version-suffix ${{ env.VERSION_SUFFIX }} -f net7.0
dotnet build ./src/Neo.SmartContract.Testing --no-dependencies --version-suffix ${{ env.VERSION_SUFFIX }} -f netstandard2.1
dotnet build ./src/Neo.SmartContract.Testing --no-dependencies -f net7.0
dotnet build ./src/Neo.SmartContract.Testing --no-dependencies -f netstandard2.1
- name : Pack (Neo.SmartContract.Testing)
run: |
dotnet pack ./src/Neo.SmartContract.Testing \
--no-build \
--configuration Debug \
--output ./out
--output ./out \
--version-suffix ${{ env.VERSION_SUFFIX }}
- name: Publish to Github Packages
working-directory: ./out
run: |
Expand Down

0 comments on commit 263aaf5

Please sign in to comment.