From d3f0fbd4f868febdf645e0fd635db73a7aa0c3cd Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Tue, 20 Sep 2022 19:54:49 +0200 Subject: [PATCH] Pack on CI --- .github/workflows/pack-for-release.yaml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/pack-for-release.yaml diff --git a/.github/workflows/pack-for-release.yaml b/.github/workflows/pack-for-release.yaml new file mode 100644 index 0000000..7dacf70 --- /dev/null +++ b/.github/workflows/pack-for-release.yaml @@ -0,0 +1,38 @@ +name: pack-for-release + +on: + workflow_dispatch: + +env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_NOLOGO: 1 + +jobs: + build-and-pack: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Restore + run: dotnet restore --nologo + + - name: Run Data Builder + run: dotnet run --project src/GeoTimeZone.DataBuilder -c Release --nologo --no-restore + + - name: Build Solution + run: dotnet build -c Release --nologo --no-restore + + - name: Test + run: dotnet test -c Release --nologo --no-build -l GitHubActions -l "trx;LogFileName=testresults.trx" + + - name: Pack + run: dotnet pack -c Release --nologo --no-build + + - name: Archive Artifacts + uses: actions/upload-artifact@v3 + with: + name: nuget-packages + path: src/**/Release/*.*nupkg + if-no-files-found: error