-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e406dc
commit 915f6a8
Showing
6 changed files
with
120 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
name: 📞 Release Please | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
defaults: | ||
run: | ||
working-directory: src | ||
|
||
jobs: | ||
release-please: | ||
name: ✨ Release Please | ||
runs-on: ubuntu-latest | ||
outputs: | ||
created: ${{ steps.release.outputs.release_created }} | ||
version_major: ${{ steps.release.outputs.version_major }} | ||
version_minor: ${{ steps.release.outputs.version_minor }} | ||
version_patch: ${{ steps.release.outputs.version_patch }} | ||
steps: | ||
- name: ✨ Release Please | ||
id: release | ||
uses: googleapis/release-please-action@v4 | ||
with: | ||
config-file: release-please/config.json | ||
manifest-file: release-please/manifest.json | ||
|
||
tag-commits: | ||
name: 🏷️ Tag Commits | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # releases, tags | ||
needs: | ||
- release-please | ||
if: ${{ needs.release.outputs.version_major && needs.release.outputs.version_minor && needs.release.outputs.version_patch }} | ||
env: | ||
V_MAJOR: ${{ steps.release.outputs.version_major } | ||
V_MINOR: ${{ steps.release.outputs.version_minor } | ||
V_PATCH: ${{ steps.release.outputs.version_patch } | ||
steps: | ||
- run: | | ||
echo "Major version: ${{ steps.release.outputs.version_major }}" | ||
echo "Minor version: ${{ steps.release.outputs.version_minor }}" | ||
echo "Patch version: ${{ steps.release.outputs.version_patch }}" | ||
echo "env Major version: ${{ env.V_MAJOR }}" | ||
echo "env Minor version: ${{ env.V_MINOR }}" | ||
echo "env Patch version: ${{ env.V_PATCH }}" | ||
publish: | ||
name: 📦 Publish to NuGet | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # releases, tags | ||
needs: | ||
- release-please | ||
- tag-commits | ||
if: ${{ needs.release-please.outputs.created }} | ||
steps: | ||
- name: 🛒 Checkout | ||
uses: actions/checkout@v4 | ||
- name: 🟣 Setup .NET | ||
uses: actions/setup-dotnet@v4 | ||
- name: 📦 Pack | ||
run: > | ||
dotnet pack | ||
--configuration Release | ||
- name: 🚀 Push to Nuget | ||
run: > | ||
dotnet nuget push | ||
"nuget/*.nupkg" | ||
--api-key ${{ secrets.NUGET_API_KEY }} | ||
--source https://api.nuget.org/v3/index.json | ||
--skip-duplicate | ||
- name: 🚀 Push to Github Packages | ||
run: > | ||
dotnet nuget push | ||
"nuget/*.nupkg" | ||
--api-key ${{ secrets.GITHUB_TOKEN }} | ||
--source https://nuget.pkg.github.com/Fonts.Avalonia/index.json | ||
--skip-duplicate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
"packages": { | ||
".": { | ||
"release-type": "simple", | ||
"extra-files": ["src/Directory.Build.props"], | ||
"changelog-sections": [ | ||
{ | ||
"type": "feat", | ||
"section": "🚀 Features", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "🐛 Bug Fixes", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "📦️ Build System, Dependencies", | ||
"hidden": false | ||
} | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.0.5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters