Skip to content

Commit

Permalink
Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
m-sadegh-sh committed Sep 23, 2024
1 parent 23a5e9d commit e7a84d6
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 38 deletions.
68 changes: 32 additions & 36 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,42 @@ jobs:
configuration: [ Release ]
runs-on: windows-2019
steps:
- uses: actions/checkout@v2

- name: Publish a new Zebble package
uses: brandedoutcast/publish-nuget@v2
- uses: actions/checkout@v4

- uses: actions/setup-dotnet@v4
with:
PROJECT_FILE_PATH: Zebble/Zebble.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

dotnet-version: '8.x'

- name: Install MAUI
run: dotnet workload install ios android maui --source https://aka.ms/dotnet8/nuget/index.json --source https://api.nuget.org/v3/index.json

- name: Install Zebble's CLI tools
run: dotnet tool install --global zebble-build

- name: Publish a new Zebble package
run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble

- name: Publish a new Zebble.Build package
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Zebble.Build/Zebble.Build.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble.Build

- name: Publish a new Zebble.CompileZbl package
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Zebble.CompileZbl/Zebble.CompileZbl.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble.CompileZbl

- name: Publish a new Zebble.Css package
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Zebble.Css/Zebble.Css.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble.Css

- name: Publish a new Zebble.FormatZbl package
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Zebble.FormatZbl/Zebble.FormatZbl.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble.FormatZbl

- name: Publish a new Zebble.Image package
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Zebble.Image/Zebble.Image.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}

run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble.Image

- name: Publish a new Zebble.Schema package
uses: brandedoutcast/publish-nuget@v2
with:
PROJECT_FILE_PATH: Zebble.Schema/Zebble.Schema.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
run: zebble-build update-plugin --api-key ${{secrets.NUGET_API_KEY}} --publish
working-directory: Zebble.Schema
4 changes: 2 additions & 2 deletions Zebble/Zebble.csproj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<Project Sdk="MSBuild.Sdk.Extras/3.0.44">
<PropertyGroup>
<TargetFrameworks>net8.0;net8.0-android;net8.0-ios</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
<TargetFrameworks Condition=" '$(OS)' == 'Windows_NT' ">$(TargetFrameworks);net8.0-windows10.0.19041</TargetFrameworks>
<AssemblyName>Zebble</AssemblyName>
<RootNamespace>Zebble</RootNamespace>
<PackageId>Zebble</PackageId>
<Product>$(AssemblyName) ($(TargetFramework))</Product>
<Version>5.1.0.0</Version>
<Version>5.1.2.0</Version>
<PackOnBuild>true</PackOnBuild>
<NeutralLanguage>en</NeutralLanguage>
<NoWarn>0618;0162</NoWarn>
Expand Down

0 comments on commit e7a84d6

Please sign in to comment.