Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6911c0f

Browse files
committedJun 11, 2024·
2 parents a3bdcd3 + c081ddb commit 6911c0f

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: Xero SDK Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'xero-*'
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 Xero-NetStandard\Xero.NetStandard.OAuth2.sln
20+
- name: Build
21+
run: dotnet build Xero-NetStandard\Xero.NetStandard.OAuth2.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)
Please sign in to comment.