Skip to content

Commit

Permalink
Pack on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjohnsonpint committed Sep 20, 2022
1 parent 54371ac commit d3f0fbd
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pack-for-release.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d3f0fbd

Please sign in to comment.