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 0aa811d
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 39 deletions.
93 changes: 56 additions & 37 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,48 +7,67 @@ jobs:
strategy:
matrix:
configuration: [ Release ]
runs-on: windows-2019
runs-on: windows-2022
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: SDKList
run: dotnet --list-sdks

- name: RuntimeList
run: dotnet --list-runtimes

- name: WorkloadList
run: dotnet workload list

- name: PWD-Root
run: ECHO PWD

- name: ls-Root
run: ls

- name: PWD-Zebble
run: ECHO PWD
working-directory: Zebble

- name: ls-Zebble
run: ls
working-directory: Zebble

- 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 0aa811d

Please sign in to comment.