Skip to content

Commit 633ec00

Browse files
committed
Added CI pipeline
1 parent 640b48e commit 633ec00

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/build-test.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Build and Deploy
4+
5+
on:
6+
push:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
contents: read
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-dotnet@v4
17+
with:
18+
dotnet-version: '8.0' # SDK Version to use.
19+
- name: Restore dependencies
20+
run: dotnet restore
21+
- name: Build the sln
22+
run: dotnet build --configuration Release
23+
- name: Create the package
24+
run: dotnet pack --configuration Release
25+
- name: Publish the package to GPR
26+
run: dotnet nuget push */bin/Release/*.nupkg -k ${{ secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
27+
- name: Publish the package to GPR
28+
run: dotnet nuget push */bin/Release/*.nupkg -k ${{ secrets.GPR_KEY }} -s https://nuget.pkg.github.com/alex8obrien/index.json --skip-duplicate

0 commit comments

Comments
 (0)