diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 924267a..4b8f4ab 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -6,18 +6,18 @@ name: Build-Test on: push: branches: - - "main" - - "nuget-package" + - "main" + - "ci/nuget-package" paths-ignore: - - 'tree-sitter/**' - - 'scripts/**' + - "tree-sitter/**" + - "scripts/**" pull_request: branches: - - "main" + - "main" paths-ignore: - - 'tree-sitter/**' - - 'scripts/**' - + - "tree-sitter/**" + - "scripts/**" + env: DOTNET_VERSION: "8.0.*" @@ -27,27 +27,27 @@ jobs: runs-on: ubuntu-latest needs: pre-checks steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - - name: Setup .NET Core - uses: actions/setup-dotnet@v3 - with: - dotnet-version: ${{ env.DOTNET_VERSION }} + - name: Setup .NET Core + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ env.DOTNET_VERSION }} - - name: Cache NuGet packages - uses: actions/cache@v3 - with: - path: ~/.nuget/packages - key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }} - restore-keys: | - nuget-${{ runner.os }}- + - name: Cache NuGet packages + uses: actions/cache@v3 + with: + path: ~/.nuget/packages + key: nuget-${{ runner.os }}-${{ hashFiles('**/*.csproj') }} + restore-keys: | + nuget-${{ runner.os }}- - - name: Restore dependencies - run: dotnet restore AIAssistant.sln + - name: Restore dependencies + run: dotnet restore AIAssistant.sln - - name: Build Version - run: dotnet build AIAssistant.sln -c Release --no-restore + - name: Build Version + run: dotnet build AIAssistant.sln -c Release --no-restore # - name: Test Version # run: | -# dotnet test AIAssistant.sln -c Release --no-restore --no-build \ No newline at end of file +# dotnet test AIAssistant.sln -c Release --no-restore --no-build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e2d6a19..05f1344 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,11 +5,11 @@ on: tags: - 'v*' # Matches tag names like v1.0.0 for releases branches: - - main - - nuget-package + - "main" + - "ci/nuget-package" paths-ignore: - - 'tests/**' - + - "tests/**" + env: GHC_SOURCE: ${{ vars.GHC_SOURCE }} # FEED_SOURCE: https://api.nuget.org/v3/index.json