Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions .github/workflows/dotnet-core.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/dotnet-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: .NET Tests

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]

steps:
- name: Checkout 🛎️
uses: actions/checkout@v5

- name: Setup DotNet ✨
uses: actions/setup-dotnet@v5
with:
dotnet-version: "9.0.x"

- name: Install dependencies 📦️
run: dotnet restore

- name: Build 🔨
run: dotnet build --no-restore -c Release

- name: Test ✅
run: dotnet test --verbosity normal
48 changes: 48 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Note this will only work with Release-Please if you have given it a PAT.
# The default GITHUB_TOKEN does not have permission to run workflows on releases
name: Publish to NuGet

on:
release:
types: [published]
workflow_dispatch:

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v5

- name: Setup DotNet ✨
uses: actions/setup-dotnet@v5
with:
dotnet-version: "9.0.x"

- name: Install dependencies 📦️
run: dotnet restore

- name: Build 🔨
run: dotnet build --no-restore -c Release

# If not using <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
- name: Pack NuGet 🏗️
run: |
dotnet pack --no-build -v normal --include-symbols -o nupkg

# Get a short-lived NuGet API key
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{secrets.NUGET_USER}}

- name: Push NuGet 🚀
run: |
dotnet nuget push **/*.nupkg -k ${{steps.login.outputs.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate

# dotnet nuget push **/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://f.feedz.io/jcamp/nuget-test/nuget/index.json --skip-duplicate
28 changes: 0 additions & 28 deletions .github/workflows/publish-packages.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
issues: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.JCAMP_GH_TOKEN }}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.8.0"
}
9 changes: 6 additions & 3 deletions FluentEmail.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 18
VisualStudioVersion = 18.0.11121.172 d18.0
VisualStudioVersion = 18.0.11121.172
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{6DC215BD-05EF-49A6-ADBE-8AE399952EEC}"
ProjectSection(SolutionItems) = preProject
Expand Down Expand Up @@ -53,8 +53,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentEmail.Postmark", "src
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub Actions", "GitHub Actions", "{1B6987D8-3785-4A78-8637-40E321CC2877}"
ProjectSection(SolutionItems) = preProject
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
.github\workflows\publish-packages.yml = .github\workflows\publish-packages.yml
.release-please-manifest.json = .release-please-manifest.json
.github\workflows\dotnet-test.yml = .github\workflows\dotnet-test.yml
.github\workflows\publish-nuget.yml = .github\workflows\publish-nuget.yml
release-please-config.json = release-please-config.json
.github\workflows\release-please.yml = .github\workflows\release-please.yml
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FluentEmail.MailPace", "src\Senders\FluentEmail.MailPace\FluentEmail.MailPace.csproj", "{B7A5D5CF-9804-41CA-BF0A-16D5252CE7A9}"
Expand Down
33 changes: 33 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"packages": {
".": {
"changelog-path": "CHANGELOG.md",
"release-type": "simple",
"draft": false,
"prerelease": false
}
},
"plugins": ["sentence-case"],
"changelog-sections": [
{ "type": "feat", "section": "✨ Features" },
{ "type": "feature", "section": "✨ Features" },
{ "type": "fix", "section": "🐛 Bug Fixes" },
{ "type": "perf", "section": "⚡️Performance Improvements" },
{ "type": "revert", "section": "⏪️ Reverts" },
{ "type": "docs", "section": "📝 Documentation" },
{ "type": "style", "section": "🎨 Styles" },
{ "type": "chore", "section": "🏡 Miscellaneous Chores" },
{ "type": "refactor", "section": "♻️ Code Refactoring", "hidden": true },
{ "type": "test", "section": "✅ Tests", "hidden": true },
{ "type": "build", "section": "📦️ Build System", "hidden": true },
{ "type": "ci", "section": "🤖 Continuous Integration", "hidden": true }
],
"extra-files": [
{
"type": "xml",
"path": "src/Directory.Build.props",
"xpath": "//project/propertygroup/version"
}
],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}
Loading