Skip to content

Commit ee0442a

Browse files
Merge pull request #2 from autoguru-au/feature/autoguru-nuget-package-rename
Rename NuGet packages to AutoGuru.EntityFrameworkCore.Triggered
2 parents 28a5f65 + ac640dc commit ee0442a

File tree

4 files changed

+31
-43
lines changed

4 files changed

+31
-43
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,52 +5,43 @@ on:
55
release:
66
types:
77
- published
8-
8+
99
env:
1010
# Stop wasting time caching packages
1111
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1212
# Disable sending usage data to Microsoft
1313
DOTNET_CLI_TELEMETRY_OPTOUT: true
1414
# GitHub Packages Feed settings
15-
GITHUB_FEED: https://nuget.pkg.github.com/koenbeuk/
16-
GITHUB_USER: koenbeuk
15+
GITHUB_FEED: https://nuget.pkg.github.com/autoguru-au/
16+
GITHUB_USER: autoguru-au
1717
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
18+
1919
jobs:
2020
build:
2121
strategy:
2222
matrix:
2323
os: [ubuntu-latest, windows-latest, macos-latest]
24-
version: [1, 2, 3]
25-
include:
26-
- version: 1
27-
configuration: ReleaseV1
28-
- version: 2
29-
configuration: ReleaseV2
30-
- version: 3
31-
configuration: Release
32-
runs-on: ${{ matrix.os }}
24+
runs-on: ${{ matrix.os }}
3325

3426
steps:
35-
- uses: actions/checkout@v2
27+
- uses: actions/checkout@v4
3628
- name: Setup .NET Core
37-
uses: actions/setup-dotnet@v1
29+
uses: actions/setup-dotnet@v4
3830
with:
3931
dotnet-version: 6.0.x
40-
include-prerelease: True
4132
- name: Install dependencies
42-
run: dotnet restore EntityFrameworkCore.Triggered.sln -p:Configuration=${{ matrix.configuration }}
33+
run: dotnet restore EntityFrameworkCore.Triggered.sln -p:Configuration=Release
4334
- name: Build
44-
run: dotnet build --configuration ${{ matrix.configuration }} --no-restore EntityFrameworkCore.Triggered.sln
35+
run: dotnet build --configuration Release --no-restore EntityFrameworkCore.Triggered.sln
4536
- name: Test
46-
run: dotnet test --configuration ${{ matrix.configuration }} --verbosity normal EntityFrameworkCore.Triggered.sln
37+
run: dotnet test --configuration Release --verbosity normal EntityFrameworkCore.Triggered.sln
4738
- name: Pack
4839
if: matrix.os == 'ubuntu-latest'
49-
run: |
50-
dotnet pack -v normal --configuration ${{ matrix.configuration }} --include-symbols --include-source -p:PackageVersion=${{ matrix.version }}-pre-$GITHUB_RUN_ID -o nupkg EntityFrameworkCore.Triggered.Core.slnf
40+
run: |
41+
dotnet pack -v normal --configuration Release --include-symbols --include-source -p:PackageVersion=3-pre-$GITHUB_RUN_ID -o nupkg EntityFrameworkCore.Triggered.Core.slnf
5142
- name: Upload Artifact
5243
if: matrix.os == 'ubuntu-latest'
53-
uses: actions/upload-artifact@v2
44+
uses: actions/upload-artifact@v4
5445
with:
5546
name: nupkg
5647
path: ./nupkg/*.nupkg
@@ -59,27 +50,26 @@ jobs:
5950
strategy:
6051
matrix:
6152
os: [ubuntu-latest, windows-latest, macos-latest]
62-
runs-on: ${{ matrix.os }}
63-
53+
runs-on: ${{ matrix.os }}
54+
6455
steps:
65-
- uses: actions/checkout@v2
56+
- uses: actions/checkout@v4
6657
- name: Setup .NET Core
67-
uses: actions/setup-dotnet@v1
58+
uses: actions/setup-dotnet@v4
6859
with:
6960
dotnet-version: 6.0.x
70-
include-prerelease: True
7161
- name: Install dependencies
7262
run: dotnet restore EntityFrameworkCore.Triggered.Samples.slnf
7363
- name: Build
74-
run: dotnet build --configuration Release --no-restore EntityFrameworkCore.Triggered.Samples.slnf
75-
64+
run: dotnet build --configuration Release --no-restore EntityFrameworkCore.Triggered.Samples.slnf
65+
7666
prerelease:
7767
needs: build
7868
if: github.ref == 'refs/heads/master'
7969
runs-on: ubuntu-latest
8070
steps:
8171
- name: Download Artifact
82-
uses: actions/download-artifact@v1
72+
uses: actions/download-artifact@v4
8373
with:
8474
name: nupkg
8575
- name: Push to GitHub Feed

.github/workflows/release.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,37 @@ on:
33
release:
44
types:
55
- published
6-
6+
77
env:
88
# Stop wasting time caching packages
99
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
1010
# Disable sending usage data to Microsoft
1111
DOTNET_CLI_TELEMETRY_OPTOUT: true
1212
# GitHub Packages Feed settings
13-
GITHUB_FEED: https://nuget.pkg.github.com/koenbeuk/
14-
GITHUB_USER: koenbeuk
13+
GITHUB_FEED: https://nuget.pkg.github.com/autoguru-au/
14+
GITHUB_USER: autoguru-au
1515
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1616
# Official NuGet Feed settings
1717
NUGET_FEED: https://api.nuget.org/v3/index.json
1818
NUGET_KEY: ${{ secrets.NUGET_KEY }}
19-
19+
2020
jobs:
2121
deploy:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v4
2525
- name: Setup .NET Core
26-
uses: actions/setup-dotnet@v1
26+
uses: actions/setup-dotnet@v4
2727
with:
2828
dotnet-version: 6.0.x
2929
- name: Create Release NuGet package
3030
run: |
3131
arrTag=(${GITHUB_REF//\// })
3232
VERSION="${arrTag[2]}"
3333
echo Version: $VERSION
34-
CONFIGURATION=$([ "${VERSION:0:2}" == "v1" ] && echo "ReleaseV1" || echo "Release")
35-
CONFIGURATION=$([ "${VERSION:0:2}" == "v2" ] && echo "ReleaseV2" || echo $CONFIGURATION)
3634
VERSION="${VERSION:1}"
3735
echo Clean Version: $VERSION
38-
echo Configuration: $CONFIGURATION
39-
dotnet pack -v normal -c $CONFIGURATION --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg EntityFrameworkCore.Triggered.Core.slnf
36+
dotnet pack -v normal -c Release --include-symbols --include-source -p:PackageVersion=$VERSION -o nupkg EntityFrameworkCore.Triggered.Core.slnf
4037
- name: Push to GitHub Feed
4138
run: |
4239
for f in ./nupkg/*.nupkg

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
<PropertyGroup>
1212
<Description>Triggers for EF Core. Respond to changes in your ApplicationDbContext before and after they are committed to the database</Description>
1313
<RepositoryType>Git</RepositoryType>
14-
<RepositoryUrl>https://github.com/koenbeuk/EntityFrameworkCore.Triggered</RepositoryUrl>
15-
<Authors>Koen Bekkenutte</Authors>
14+
<RepositoryUrl>https://github.com/autoguru-au/EntityFrameworkCore.Triggered</RepositoryUrl>
15+
<Authors>AutoGuru</Authors>
1616
<PackageTags>EntityFramework;EFCore;Triggers;SQLServer;SqlLite;CosmosDb;.NET Core;aspnetcore</PackageTags>
17-
<PackageProjectUrl>https://github.com/koenbeuk/EntityFrameworkCore.Triggered</PackageProjectUrl>
17+
<PackageProjectUrl>https://github.com/autoguru-au/EntityFrameworkCore.Triggered</PackageProjectUrl>
1818
</PropertyGroup>
1919

2020
<PropertyGroup>

src/Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
</PropertyGroup>
1818

1919
<PropertyGroup>
20+
<PackageId>AutoGuru.$(MSBuildProjectName)</PackageId>
2021
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2122
<IncludeSymbols>true</IncludeSymbols>
2223
<SymbolPackageFormat>snupkg</SymbolPackageFormat>

0 commit comments

Comments
 (0)