Skip to content

Commit 7841a4f

Browse files
committed
ci: build and publish
1 parent 9cea804 commit 7841a4f

3 files changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: build & test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 15
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: TagBites/actions/dotnet-build@master
17+
with:
18+
solution: TagBites.ComponentModel.Composition.sln
19+
#- uses: TagBites/actions/dotnet-test@master
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: publish preview
2+
3+
on:
4+
push:
5+
tags:
6+
- "v?[0-9]+.[0-9]+.[0-9]+-preview.[0-9]+"
7+
8+
jobs:
9+
publish-preview:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 15
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: TagBites/actions/dotnet-build@master
16+
- uses: TagBites/actions/nuget-publish@master
17+
with:
18+
nuget-source: "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
19+
nuget-key: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v?[0-9]+.[0-9]+.[0-9]+"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 15
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: TagBites/actions/dotnet-build@master
16+
with:
17+
solution: TagBites.ComponentModel.Composition.sln
18+
- uses: TagBites/actions/nuget-publish@master
19+
with:
20+
nuget-source: "https://api.nuget.org/v3/index.json"
21+
nuget-key: "${{ secrets.NUGET_KEY }}"

0 commit comments

Comments
 (0)