File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 99 tags :
1010 - " v[0-9]+.[0-9]+.[0-9]+"
1111
12+ env :
13+ # Set the name of the project
14+ PROJECT : " MangaDexSharp"
15+
1216# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1317jobs :
1418 # This workflow contains a single job called "build"
@@ -31,12 +35,17 @@ jobs:
3135 id : version
3236 run : |
3337 echo "version-without-v=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
38+ echo "csproj=./src/${{ env.PROJECT }}/${{ env.PROJECT }}.csproj" >> $GITHUB_OUTPUT
39+
40+ - name : Build Package
41+ run : dotnet build -c Release -p:Version=${{ steps.version.outputs.version-without-v }} ${{ steps.version.outputs.csproj }}
3442
3543 - name : Publish Extensions Nuget Package
3644 id : publish_nuget_extensions
3745 uses : alirezanet/publish-nuget@v3.0.4
3846 with :
39- PROJECT_FILE_PATH : src/MangaDexSharp/MangaDexSharp.csproj
47+ PROJECT_FILE_PATH : ${{ steps.version.outputs.csproj }}
48+ NO_BUILD : true
4049 TAG_COMMIT : false
4150 NUGET_KEY : ${{secrets.NUGET_API_KEY}}
4251 VERSION_STATIC : ${{ steps.version.outputs.version-without-v }}
You can’t perform that action at this time.
0 commit comments