diff --git a/.github/workflows/deploy_siteextension.yml b/.github/workflows/deploy_siteextension.yml index 93c88d6741..115e443bdb 100644 --- a/.github/workflows/deploy_siteextension.yml +++ b/.github/workflows/deploy_siteextension.yml @@ -39,7 +39,6 @@ jobs: deploy-nuget: needs: get-external-artifacts - if: ${{ github.event.inputs.nuget == 'true' }} name: Deploy to NuGet runs-on: windows-2019 diff --git a/.github/workflows/siteextension_release.yml b/.github/workflows/siteextension_release.yml index 052fef8a14..0637a43b88 100644 --- a/.github/workflows/siteextension_release.yml +++ b/.github/workflows/siteextension_release.yml @@ -26,6 +26,9 @@ jobs: name: Run ArtifactBuilder runs-on: windows-2019 + env: + artifacts_script_path: ${{ github.workspace }}\build + steps: - name: Checkout uses: actions/checkout@v2 @@ -34,10 +37,9 @@ jobs: - name: Run ArtifactBuilder run: | - $rootDirectory = Resolve-Path "$(Split-Path -Parent $PSCommandPath)\.." $configuration = "Release" - $artifactBuilderCsproj = "$rootDirectory\build\ArtifactBuilder\ArtifactBuilder.csproj" - & "$rootDirectory\build\generateBuildProperties.ps1" -outputPath "$rootDirectory\build\BuildArtifacts\_buildProperties" + $artifactBuilderCsproj = "${{ env.artifacts_script_path }}\ArtifactBuilder\ArtifactBuilder.csproj" + & "${{ env.artifacts_script_path }}\generateBuildProperties.ps1" -outputPath "${{ env.artifacts_script_path }}\BuildArtifacts\_buildProperties" dotnet run --project "$artifactBuilderCsproj" AzureSiteExtension $configuration shell: powershell