diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 480eff7..78d03f1 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -30,14 +30,12 @@ jobs: if: github.ref == 'refs/heads/main' working-directory: ${{ env.GIT_REPO_ROOT }} run: | - dotnet pack Agoda.CodeCompass/Agoda.CodeCompass.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }} dotnet pack Agoda.CodeCompass.MSBuild/Agoda.CodeCompass.MSBuild.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }} - name: Pack Preview if: github.ref != 'refs/heads/main' working-directory: ${{ env.GIT_REPO_ROOT }} run: | - dotnet pack Agoda.CodeCompass/Agoda.CodeCompass.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }}-preview dotnet pack Agoda.CodeCompass.MSBuild/Agoda.CodeCompass.MSBuild.csproj --configuration Release -o finalpackage --no-build -p:PackageVersion=${{ env.MAJOR_MINOR_VERSION }}${{ github.run_number }}-preview - name: Publish artifact