From bb057f5682828d6e6ba17b31e6829b5a93ce4d3a Mon Sep 17 00:00:00 2001 From: Manfred Lange Date: Sun, 24 Sep 2023 04:03:56 +0000 Subject: [PATCH] cleanup files --- .github/workflows/build-and-test.yml | 31 ---------------- .../workflows/build-test-publish-package.yml | 36 ------------------- .github/workflows/ci.yml | 3 +- .github/workflows/jobs-example.yml | 2 -- Directory.Build.props | 2 +- 5 files changed, 3 insertions(+), 71 deletions(-) delete mode 100644 .github/workflows/build-and-test.yml delete mode 100644 .github/workflows/build-test-publish-package.yml diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml deleted file mode 100644 index cd75639..0000000 --- a/.github/workflows/build-and-test.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Build and Publish NuGet Package - -on: - workflow_call: - push: - branches: - - whatever - # paths: - # - "!*" - # - "Directory.Build.props" - -jobs: - build-and-test: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 7.0.401 - - - name: Restore NuGet packages - run: dotnet restore - - - name: Build - run: dotnet build --configuration Release --no-restore - - - name: Test (this will run for several minutes) - run: dotnet test --configuration Release --no-restore --no-build --verbosity normal diff --git a/.github/workflows/build-test-publish-package.yml b/.github/workflows/build-test-publish-package.yml deleted file mode 100644 index 91087ea..0000000 --- a/.github/workflows/build-test-publish-package.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Build and Publish NuGet Package - -on: - push: - branches: - - whatever - # paths: - # - "Directory.Build.props" - -jobs: - tests: - uses: ./.github/workflows/build-and-test.yml - - build-test-publish: - runs-on: ubuntu-latest - needs: tests - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 7.0.401 - - - name: Restore NuGet packages - run: dotnet restore - - - name: Build - run: dotnet build --configuration Release --no-restore - - # - name: Test (this will run for several minutes) - # run: dotnet test --configuration Release --no-restore --no-build --verbosity normal - - - name: Publish NuGet package - run: dotnet nuget push Faker/bin/Release/RimuTec.Faker.*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1914f9..a247c45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: with: dotnet-version: 7.0.401 - - name: Restore NuGet packages + - name: Restore NuGet packages (dependencies) run: dotnet restore - name: Build @@ -47,6 +47,7 @@ jobs: # - name: Test (this will run for several minutes) # run: dotnet test --configuration Release --no-restore --no-build --verbosity normal + # I believe this step is superfluous, as the package is created in the build step: - name: Create NuGet package id: create-package run: | diff --git a/.github/workflows/jobs-example.yml b/.github/workflows/jobs-example.yml index 620c938..69f4e92 100644 --- a/.github/workflows/jobs-example.yml +++ b/.github/workflows/jobs-example.yml @@ -8,8 +8,6 @@ on: - '.github/workflows/jobs-example.yml' # Example from https://docs.github.com/en/actions/using-jobs/defining-outputs-for-jobs - - jobs: job1: runs-on: ubuntu-latest diff --git a/Directory.Build.props b/Directory.Build.props index 772f3e3..fa3c406 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -2,6 +2,6 @@ incrementing the minor version will do. [Manfred, 19sep2023] --> - 1.11.98 + 1.11.99