-
-
Notifications
You must be signed in to change notification settings - Fork 454
20 lines (20 loc) · 709 Bytes
/
pack.yml
File metadata and controls
20 lines (20 loc) · 709 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
name: CD Pack
on:
push:
branches:
- "main"
- "release/*"
jobs:
Pack:
needs: Test
if: github.repository == 'dotnet/Silk.NET'
runs-on: ubuntu-latest
steps:
- name: Pack
run: dotnet pack -c Release -o ./packages-out/ --version-suffix build${{ github.run_number }}.0
- name: Push to GitHub Packages
run: dotnet nuget push ./packages-out/*.nupkg --force-english-output -s https://nuget.pkg.github.com/dotnet/index.json -k ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: packages
path: ./packages-out/