From b9efb341538cadda2e2ef1efb1cac98a902c95e1 Mon Sep 17 00:00:00 2001 From: ionite34 Date: Sat, 30 Dec 2023 12:53:13 +0800 Subject: [PATCH] Fix env var setting on macos ci --- .github/workflows/release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c4b60ad..09fa2795 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -192,13 +192,13 @@ jobs: if: github.event_name == 'release' run: | echo "Using tag ${{ env.GIT_TAG_NAME }}" - echo "RELEASE_VERSION=${{ env.GIT_TAG_NAME }}" >> $env:GITHUB_ENV + echo "RELEASE_VERSION=${{ env.GIT_TAG_NAME }}" >> $GITHUB_ENV - name: Set Version from manual input if: github.event_name == 'workflow_dispatch' run: | echo "Using version ${{ github.event.inputs.version }}" - echo "RELEASE_VERSION=${{ github.event.inputs.version }}" >> $env:GITHUB_ENV + echo "RELEASE_VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV - name: Set up .NET 8 uses: actions/setup-dotnet@v3 @@ -209,7 +209,7 @@ jobs: run: dotnet restore -p:PublishReadyToRun=true - name: Check Version - run: echo "$RELEASE_VERSION" + run: echo $RELEASE_VERSION - name: .NET Msbuild (App) env: @@ -218,14 +218,13 @@ jobs: dotnet msbuild ./StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj -t:BundleApp -p:UseAppHost=true -p:SelfContained=true -p:Configuration=Release -p:RuntimeIdentifier=${{ env.platform-id }} - -p:Version="$RELEASE_VERSION" - -p:NuGetVersion="$RELEASE_VERSION" + -p:Version=$RELEASE_VERSION -p:PublishDir=out -p:PublishReadyToRun=true - -p:CFBundleShortVersionString="$RELEASE_VERSION" + -p:CFBundleShortVersionString=$RELEASE_VERSION -p:CFBundleName="Stability Matrix" -p:CFBundleDisplayName="Stability Matrix" - -p:CFBundleVersion="$RELEASE_VERSION" + -p:CFBundleVersion=$RELEASE_VERSION -p:SentryOrg=${{ secrets.SENTRY_ORG }} -p:SentryProject=${{ secrets.SENTRY_PROJECT }} -p:SentryUploadSymbols=true -p:SentryUploadSources=true