Skip to content

Commit 3759f0f

Browse files
committed
ci: update workflows, up version
1 parent 9dfb8a7 commit 3759f0f

File tree

4 files changed

+42
-39
lines changed

4 files changed

+42
-39
lines changed

.github/workflows/branch.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI Branch
1+
name: 💿 CI Branch
22

33
on:
44
push:
@@ -13,13 +13,14 @@ on:
1313

1414
jobs:
1515
build-branch:
16+
name: 🏭 Build Branch
1617
runs-on: ubuntu-20.04
1718
steps:
18-
- name: Checkout
19-
uses: actions/checkout@v2
20-
- name: Setup .NET Core
21-
uses: actions/setup-dotnet@v1
22-
- name: Restore
19+
- name: 🚚 Checkout
20+
uses: actions/checkout@master
21+
- name: 🛠 Setup .NET Core
22+
uses: actions/setup-dotnet@master
23+
- name: Restore
2324
run: dotnet restore
24-
- name: Publish to Codecov
25-
uses: codecov/codecov-action@v1
25+
- name: 🏭 Build
26+
run: dotnet build --no-restore -c Release

.github/workflows/master.yml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI Master
1+
name: 💿 CI Master
22

33
on:
44
push:
@@ -8,25 +8,24 @@ on:
88
- '!refs/tags/*'
99

1010
jobs:
11-
build-publish-dev:
11+
build-dev:
12+
name: 🏭 Build Dev
1213
runs-on: ubuntu-20.04
1314
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v2
16-
- name: Setup .NET Core
17-
uses: actions/setup-dotnet@v1
18-
- name: Restore
15+
- name: 🚚 Checkout
16+
uses: actions/checkout@master
17+
- name: 🛠 Setup .NET Core
18+
uses: actions/setup-dotnet@master
19+
- name: Restore
1920
run: dotnet restore
20-
- name: Build
21+
- name: 🏭 Build
2122
run: dotnet build --no-restore -c Release
22-
- name: Pack artifacts
23-
run: dotnet pack src/Prometheus.Client.AspNetCore -c Release --no-build --version-suffix dev-$(date +%s) -o artifacts/
24-
- name: Upload artifacts
23+
- name: 🗜 Pack artifacts
24+
run: dotnet pack src/* --no-build -c Release --version-suffix dev-$(date +%s) -o artifacts/
25+
- name: 🗄 Publish artifacts
2526
uses: actions/upload-artifact@v2
2627
with:
2728
name: nupkg
2829
path: artifacts/*
29-
- name: Publish to GitHub
30-
run: |
31-
dotnet tool install -g gpr --no-cache -v q
32-
gpr push "artifacts/*.nupkg" -k ${{ secrets.GH_DEPLOY_KEY }} || true
30+
- name: 📦 Publish to GitHub
31+
run: dotnet nuget push "artifacts/*.nupkg" -s https://nuget.pkg.github.com/prom-client-net/index.json -k ${{ secrets.GH_DEPLOY_KEY }} --skip-duplicate

.github/workflows/production.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
1-
name: CI Production
1+
name: 💿 CI Prod
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

88
jobs:
9-
build:
9+
build-prod:
10+
name: 🏭 Build Prod
1011
runs-on: ubuntu-20.04
1112
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v2
14-
- name: Setup .NET Core
15-
uses: actions/setup-dotnet@v1
16-
- name: Build
17-
run: dotnet build -c Release
18-
- name: Pack artifacts
19-
run: dotnet pack src/Prometheus.Client.AspNetCore -c Release --no-build -o artifacts/
20-
- name: Upload artifacts
13+
- name: 🚚 Checkout
14+
uses: actions/checkout@master
15+
- name: 🛠 Setup .NET Core
16+
uses: actions/setup-dotnet@master
17+
- name: ⚙ Restore
18+
run: dotnet restore
19+
- name: 🏭 Build
20+
run: dotnet build --no-restore -c Release
21+
- name: 🗜 Pack artifacts
22+
run: dotnet pack src/* -c Release --no-build -o artifacts/
23+
- name: 🗄 Publish artifacts
2124
uses: actions/upload-artifact@v2
2225
with:
2326
name: nupkg
2427
path: artifacts/*
25-
- name: Publish to NuGet
26-
run: dotnet nuget push "artifacts/*.nupkg" -k ${{ secrets.NUGET_DEPLOY_KEY }} -s https://api.nuget.org/v3/index.json
28+
- name: 📦 Publish to NuGet
29+
run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://api.nuget.org/v3/index.json

src/Prometheus.Client.AspNetCore/Prometheus.Client.AspNetCore.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
<Description>Middleware for the Prometheus.Client</Description>
44
<Copyright>2020 © Serge K, Oleksandr Poliakov</Copyright>
55
<AssemblyTitle>Prometheus.Client.AspNetCore</AssemblyTitle>
6-
<VersionPrefix>4.3.0</VersionPrefix>
6+
<VersionPrefix>4.4.0</VersionPrefix>
77
<Authors>Serge K, Oleksandr Poliakov</Authors>
88
<TargetFrameworks>netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0</TargetFrameworks>
99
<AssemblyName>Prometheus.Client.AspNetCore</AssemblyName>
1010
<PackageId>Prometheus.Client.AspNetCore</PackageId>
1111
<PackageTags>prometheus;metrics</PackageTags>
1212
<PackageIcon>icon.png</PackageIcon>
13-
<PackageProjectUrl>https://github.com/PrometheusClientNet/Prometheus.Client.AspNetCore</PackageProjectUrl>
13+
<PackageProjectUrl>https://github.com/prom-client-net/Prometheus.Client.AspNetCore</PackageProjectUrl>
1414
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1515
<RepositoryType>git</RepositoryType>
16-
<RepositoryUrl>https://github.com/PrometheusClientNet/Prometheus.Client.AspNetCore</RepositoryUrl>
16+
<RepositoryUrl>https://github.com/prom-client-net/Prometheus.Client.AspNetCore</RepositoryUrl>
1717
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
1818
<GenerateDocumentationFile>true</GenerateDocumentationFile>
1919
<SignAssembly>true</SignAssembly>

0 commit comments

Comments
 (0)