-
Notifications
You must be signed in to change notification settings - Fork 19
58 lines (47 loc) · 2.16 KB
/
package.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Package
on:
release:
types: [created]
jobs:
package:
name: Package
runs-on: ubuntu-20.04
timeout-minutes: 5
steps:
- name: Package | Checkout
uses: actions/checkout@v2
- name: Package | Release
id: release
uses: tenhaus/get-release-or-tag@v2
- name: Package | Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
dotnet-quality: 'preview'
- name: Package | Publish
run: dotnet pack -c Release -o ./pack /p:Version=$VERSION $PROJECT
env:
PROJECT: src/AppAny.Quartz.EntityFrameworkCore.Migrations/AppAny.Quartz.EntityFrameworkCore.Migrations.csproj
VERSION: ${{ steps.release.outputs.tag }}
- name: Package | Publish | PostgreSQL
run: dotnet pack -c Release -o ./pack /p:Version=$VERSION $PROJECT
env:
PROJECT: src/AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL/AppAny.Quartz.EntityFrameworkCore.Migrations.PostgreSQL.csproj
VERSION: ${{ steps.release.outputs.tag }}
- name: Package | Publish | MySQL
run: dotnet pack -c Release -o ./pack /p:Version=$VERSION $PROJECT
env:
PROJECT: src/AppAny.Quartz.EntityFrameworkCore.Migrations.MySql/AppAny.Quartz.EntityFrameworkCore.Migrations.MySql.csproj
VERSION: ${{ steps.release.outputs.tag }}
- name: Package | Publish | SQLite
run: dotnet pack -c Release -o ./pack /p:Version=$VERSION $PROJECT
env:
PROJECT: src/AppAny.Quartz.EntityFrameworkCore.Migrations.SQLite/AppAny.Quartz.EntityFrameworkCore.Migrations.SQLite.csproj
VERSION: ${{ steps.release.outputs.tag }}
- name: Package | Publish | SqlServer
run: dotnet pack -c Release -o ./pack /p:Version=$VERSION $PROJECT
env:
PROJECT: src/AppAny.Quartz.EntityFrameworkCore.Migrations.SqlServer/AppAny.Quartz.EntityFrameworkCore.Migrations.SqlServer.csproj
VERSION: ${{ steps.release.outputs.tag }}
- name: Package | Push
run: dotnet nuget push pack/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate