Skip to content

Commit

Permalink
Allow dotnet-releaser publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Deadpikle committed Jul 28, 2024
1 parent eef84be commit cf9a027
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and publish to release
on:
push:
branches:
- main # Used for stable releases
- develop # Used for preview releases
jobs:
publish:
name: Build check for all branches
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4.1.7
with:
fetch-depth: 0
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v4.0.1
with:
dotnet-version: 8.0.x

- name: Build, Tests, Cover, Pack and Publish (on push tag)
shell: bash
run: |
dotnet tool install --global dotnet-releaser
dotnet-releaser run --github-token "${{secrets.GITHUB_TOKEN}}" ${{ github.workspace }}/dotnet-releaser.toml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*.userosscache
*.sln.docstates
*.DS_Store
*artifacts-dotnet-releaser/*

# User-specific files (MonoDevelop/Xamarin Studio)
*.userprefs
Expand Down
10 changes: 10 additions & 0 deletions EasyBackupAvalonia/EasyBackupAvalonia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
<IsTrimmable>true</IsTrimmable>
<TrimMode>partial</TrimMode>
<IsAotCompatible>true</IsAotCompatible>
<Copyright>Deadpikle</Copyright>
<Authors>Deadpikle</Authors>
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageProjectUrl>https://github.com/Deadpikle/EasyBackup</PackageProjectUrl>
<NeutralLanguage>en-US</NeutralLanguage>
</PropertyGroup>
<ItemGroup>
<None Update="Sounds/*" CopyToOutputDirectory="PreserveNewest" />
Expand All @@ -30,4 +36,8 @@
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="NetCoreAudio" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<None Include="..\LICENSE.md" Pack="true" PackagePath="\" />
<None Include="..\README.md" Pack="true" PackagePath="\" />
</ItemGroup>
</Project>
22 changes: 22 additions & 0 deletions dotnet-releaser.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# configuration file for dotnet-releaser
[msbuild]
project = "EasyBackupAvalonia/EasyBackupAvalonia.csproj"
configuration = "Release"
[msbuild.properties]
PublishReadyToRun = false # Disable PublishReadyToRun
[github]
user = "Deadpikle"
repo = "EasyBackup"
branches = ["main"]
[test]
enable = false # no tests available atm
[coverage]
enable = false
[[pack]]
publish = false
rid = ["win-arm", "win-arm64"]
kinds = []
[[pack]]
publish = false
rid = ["rhel-x64"]
kinds = []

0 comments on commit cf9a027

Please sign in to comment.