Skip to content

Commit 39a152f

Browse files
committed
ci: move from appveyor to actions
1 parent 5642771 commit 39a152f

File tree

8 files changed

+116
-44
lines changed

8 files changed

+116
-44
lines changed

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
2+
# Each line is a file pattern followed by one or more owners.
3+
4+
# These owners will be the default owners for everything.
5+
* @phnx47

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ko_fi: phnx47
2+
patreon: phnx47
3+
custom: ['https://www.buymeacoffee.com/phnx47']

.github/renovate.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"separateMajorMinor": true,
3+
"labels": [
4+
"dependencies"
5+
],
6+
"assignees": [
7+
"@phnx47"
8+
],
9+
"extends": [
10+
"config:base"
11+
],
12+
"nuget": {
13+
"enabled": true
14+
}
15+
}

.github/workflows/branch.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
- '!master'
8+
tags:
9+
- '!refs/tags/*'
10+
pull_request:
11+
branches:
12+
- master
13+
14+
jobs:
15+
build-branch:
16+
runs-on: ubuntu-20.04
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v1
20+
- name: Setup .NET Core
21+
uses: actions/setup-dotnet@v1
22+
- name: Restore
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore -c Release
26+
- name: Tests
27+
run: dotnet test --no-build -c Release

.github/workflows/master.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
tags:
8+
- '!refs/tags/*'
9+
10+
jobs:
11+
build-publish-dev:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
- name: Setup .NET Core
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
source-url: https://nuget.pkg.github.com/prometheusclientnet/index.json
20+
env:
21+
NUGET_AUTH_TOKEN: ${{secrets.GH_DEPLOY_KEY}}
22+
- name: Restore
23+
run: dotnet restore
24+
- name: Build
25+
run: dotnet build --no-restore -c Release
26+
- name: Tests
27+
run: dotnet test --no-build -c Release
28+
- name: Pack artifacts
29+
run: dotnet pack src/* --no-build -c Release --version-suffix dev-$(date +%s) -o artifacts/
30+
- name: Publish artifacts
31+
uses: actions/upload-artifact@v2
32+
with:
33+
name: nupkg
34+
path: artifacts/*
35+
- name: Publish to GitHub
36+
run: dotnet nuget push "artifacts/*.nupkg" --skip-duplicate --no-symbols true

.github/workflows/production.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "CI"
2+
3+
on:
4+
push:
5+
tags:
6+
- '[34].[0-9]+.[0-9]+'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v1
14+
- name: Setup .NET Core
15+
uses: actions/setup-dotnet@v1
16+
- name: Restore
17+
run: dotnet restore
18+
- name: Build
19+
run: dotnet build -c Release
20+
- name: Tests
21+
run: dotnet test -c Release --no-build
22+
- name: Pack artifacts
23+
run: dotnet pack src/* -c Release --no-build -o artifacts/
24+
- name: Publish artifacts
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: nupkg
28+
path: artifacts/*
29+
- name: Publish to NuGet
30+
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://api.nuget.org/v3/index.json

appveyor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

pack.sh

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)