Skip to content

Commit 5805b38

Browse files
authored
Create main.yml
1 parent 59559f4 commit 5805b38

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/main.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CyberSource REST Client Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'client-*'
7+
8+
jobs:
9+
build:
10+
runs-on: windows-2022
11+
name: build and publish
12+
steps:
13+
- name: Support longpaths
14+
run: git config --system core.longpaths true
15+
- uses: actions/checkout@v2
16+
- name: Add nuget package source
17+
run: dotnet nuget add source --username sipsorcery --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github-nofrixion "https://nuget.pkg.github.com/nofrixion/index.json"
18+
- name: Install dependencies
19+
run: dotnet restore cybersource-rest-client-netstandard\cybersource-rest-client-netstandard.sln
20+
- name: Build
21+
run: dotnet build cybersource-rest-client-netstandard\cybersource-rest-client-netstandard.sln -c Release --no-restore
22+
- name: Publish
23+
run: dotnet nuget push **\*.nupkg --source https://nuget.pkg.github.com/nofrixion/index.json --api-key ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)