SharpAdb / AdvancedSharpAdbClient

AdvancedSharpAdbClient is a .NET library that allows .NET, Mono and Unity applications to communicate with Android devices. It's improved version of SharpAdbClient.
https://sharpadb.github.io
Apache License 2.0
203 stars 54 forks source link

Add auto-releasing and upload #74

Closed yungd1plomat closed 1 year ago

yungd1plomat commented 1 year ago

Finally got around to doing #69

build and test:

    flowchart LR
        subgraph Test
        WindowsTest(build-and-test-windows-latest)
        UbuntuTest(build-and-test-ubuntu-latest)
        MacOSTest(build-and-test-macos-latest)
        end
        Start([Start]) -->  WindowsTest
        Start -->  UbuntuTest
        Start -->  MacOSTest
        WindowsTest --> IsTestSuccess{Is success?}
        UbuntuTest --> IsTestSuccess{Is success?}
        MacOSTest --> IsTestSuccess{Is success?}
        IsTestSuccess -->|True| PublishNuget(build-and-publish)
        PublishNuget --> End([End])

build-and-publish:

    flowchart LR
        Start([Start]) -->  IsMain{Is main branch?}
        IsMain -->|True| Setup(Setup .NET Core App)
        Setup --> Restore(Install dependencies)
        Restore --> Build("Build
        `FullTargets` should be true")
        Build --> BuildNuget(Build the NuGet package)
        BuildNuget --> Publish(Publish to Github Packages)
        Publish --> Upload(Upload artifact)
        Upload --> End([End])
wherewhere commented 1 year ago

But I have added in https://github.com/yungd1plomat/AdvancedSharpAdbClient/pull/73/commits/f039ff62b233489fb73bf8447e7dfa6ba48cbdf1

wherewhere commented 1 year ago

But failed https://github.com/yungd1plomat/AdvancedSharpAdbClient/actions/runs/6324138058/job/17173093633

yungd1plomat commented 1 year ago

But failed https://github.com/yungd1plomat/AdvancedSharpAdbClient/actions/runs/6324138058/job/17173093633

oh sorry, it's because i'm owner

wherewhere commented 1 year ago

So it should provider the secret id... You need set it in the secret of this repo.

yungd1plomat commented 1 year ago

So it should provider the secret id... You need set it in the secret of this repo.

yes i know, 36758f32219a15a5ed8f048c1d3c14d6bbbea4cc should fix that. I forgot that the repository is not in the organization

wherewhere commented 1 year ago

Could you rename that to NUGET_KEY or PACKAGE_KEY? API_KEY doesn't mean which API🤣.

wherewhere commented 1 year ago

Coud you please remove this package https://github.com/yungd1plomat/AdvancedSharpAdbClient/pkgs/nuget/AdvancedSharpAdbClient/131947841 🤣 I have added the build number to the version code...

yungd1plomat commented 1 year ago

Coud you please remove this package https://github.com/yungd1plomat/AdvancedSharpAdbClient/pkgs/nuget/AdvancedSharpAdbClient/131947841 🤣 I have added the build number to the version code...

yep

wherewhere commented 1 year ago

yes i know, 36758f32219a15a5ed8f048c1d3c14d6bbbea4cc should fix that. I forgot that the repository is not in the organization

Shall we create an organization called SharpAdb? So that we can bring winrt verion and sample app to each repo.

yungd1plomat commented 1 year ago

yes i know, 36758f3 should fix that. I forgot that the repository is not in the organization

Shall we create an organization called SharpAdb? So that we can bring winrt verion and sample app to each repo.

yep we can, but my phone is broken right now and I can't do it yet because 2fa.

wherewhere commented 1 year ago

🤣🤣🤣