From 484b989ce5ea8d8a6c403d0f27ff20c02984b9e9 Mon Sep 17 00:00:00 2001 From: Roxk Date: Fri, 29 Mar 2024 07:16:21 +0800 Subject: [PATCH] ci-cd: Fix build --- .github/workflows/ci.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 44d5cf7..ea560a0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,9 +18,16 @@ jobs: - uses: actions/checkout@v3 - working-directory: WinUI3XamlPreview run: ./scripts/ci + no-build-test: + runs-on: windows-2022 + if: startsWith(github.ref, 'refs/tags/v') + steps: + - uses: actions/checkout@v3 + - working-directory: WinUI3XamlPreview + run: ./scripts/format -check build: runs-on: windows-2022 - needs: ["test"] + needs: ["no-build-test"] if: startsWith(github.ref, 'refs/tags/v') env: VERSION: 0.1.0 @@ -29,7 +36,7 @@ jobs: - uses: actions/checkout@v3 - working-directory: WinUI3XamlPreview run: | - ./scripts/build -version $env:VERSION + ./scripts/build-nuget -version $env:VERSION ./scripts/publish-nuget -version $env:VERSION build-extension: runs-on: windows-2022