From 0a5eced562aa0f8e52a55f48253f27ea95880e00 Mon Sep 17 00:00:00 2001 From: Dieter Lunn Date: Sat, 29 Jun 2024 19:52:24 -0500 Subject: [PATCH] chore: update github workflows --- .github/workflows/continuous.yml | 42 ++++++++++++++++++-------------- .github/workflows/release.yml | 15 +++++++----- .nuke/build.schema.json | 4 +-- 3 files changed, 35 insertions(+), 26 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 3af4d9c..f35fbf9 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -30,15 +30,17 @@ jobs: name: windows-latest runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - name: Cache .nuke/temp, ~/.nuget/packages - uses: actions/cache@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Cache: .nuke/temp, ~/.nuget/packages' + uses: actions/cache@v3 with: path: | .nuke/temp ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - - name: Run './build.cmd Test Publish' + key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} + - name: 'Run: Test, Publish' run: ./build.cmd Test Publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -46,31 +48,35 @@ jobs: name: ubuntu-latest runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Cache .nuke/temp, ~/.nuget/packages - uses: actions/cache@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Cache: .nuke/temp, ~/.nuget/packages' + uses: actions/cache@v3 with: path: | .nuke/temp ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - - name: Run './build.cmd Test Publish' + key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} + - name: 'Run: Test, Publish' run: ./build.cmd Test Publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - macOS-latest: - name: macOS-latest - runs-on: macOS-latest + macos-latest: + name: macos-latest + runs-on: macos-latest steps: - - uses: actions/checkout@v2 - - name: Cache .nuke/temp, ~/.nuget/packages - uses: actions/cache@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Cache: .nuke/temp, ~/.nuget/packages' + uses: actions/cache@v3 with: path: | .nuke/temp ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - - name: Run './build.cmd Test Publish' + key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} + - name: 'Run: Test, Publish' run: ./build.cmd Test Publish env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4ee4471..397a8f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,20 +27,23 @@ jobs: name: windows-latest runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - name: Cache .nuke/temp, ~/.nuget/packages - uses: actions/cache@v2 + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: 'Cache: .nuke/temp, ~/.nuget/packages' + uses: actions/cache@v3 with: path: | .nuke/temp ~/.nuget/packages - key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj') }} - - name: Run './build.cmd Test Publish' + key: ${{ runner.os }}-${{ hashFiles('**/global.json', '**/*.csproj', '**/Directory.Packages.props') }} + - name: 'Run: Test, Publish' run: ./build.cmd Test Publish env: NuGetKey: ${{ secrets.NUGET_KEY }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/upload-artifact@v1 + - name: 'Publish: artifacts' + uses: actions/upload-artifact@v3 with: name: artifacts path: artifacts diff --git a/.nuke/build.schema.json b/.nuke/build.schema.json index d731ef9..3802555 100644 --- a/.nuke/build.schema.json +++ b/.nuke/build.schema.json @@ -1,7 +1,7 @@ { "$schema": "http://json-schema.org/draft-04/schema#", - "title": "Build Schema", "$ref": "#/definitions/build", + "title": "Build Schema", "definitions": { "build": { "type": "object", @@ -126,4 +126,4 @@ } } } -} \ No newline at end of file +}