Skip to content

Commit

Permalink
chore(ci): updated nuget pack workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddgrimm committed Sep 12, 2024
1 parent 88c8b4f commit 0d824d0
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,31 @@ on:

jobs:
deploy:
name: Deploy
name: Pack nuget package (for code signing)
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [3.1.x]
timeout-minutes: 10
steps:
- name: Deploy
run: echo "Placeholder for nuget pack"
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup dotnet
id: dotnet-setup
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Override global.json
run: |
echo '{"sdk":{"version": "${{ steps.dotnet-setup.outputs.dotnet-version }}"}}' > ./global.json
- name: Install project dependencies
run: |
dotnet restore what3words.dotnet.wrapper/what3words.dotnet.wrapper.csproj --locked-mode
- name: Pack nuget package
run: |
dotnet pack what3words.dotnet.wrapper/what3words.dotnet.wrapper.csproj --configuration:"Release" --no-restore --output "./artifacts" --include-symbols
- name: Upload nuget package
uses: actions/upload-artifact@v2
with:
name: what3words.dotnet.wrapper
path: ./artifacts/*.nupkg

0 comments on commit 0d824d0

Please sign in to comment.