From 6af2b5462713c888d5d2fc680d2c0d1a6bb8500a Mon Sep 17 00:00:00 2001 From: SKProCH Date: Sat, 10 Aug 2024 01:19:11 +0300 Subject: [PATCH] Migrate to common build pipelines --- .github/workflows/build-publish.yml | 21 +++++++++++++++ .github/workflows/dotnet.yml | 26 ------------------- .github/workflows/publish.yml | 23 ---------------- .../YandexMusicResolver.csproj | 6 +---- 4 files changed, 22 insertions(+), 54 deletions(-) create mode 100644 .github/workflows/build-publish.yml delete mode 100644 .github/workflows/dotnet.yml delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml new file mode 100644 index 0000000..d34a7e9 --- /dev/null +++ b/.github/workflows/build-publish.yml @@ -0,0 +1,21 @@ +name: Build and publish + +on: + push: + branches: + - master + - main + - release/** + paths-ignore: + - Material.Avalonia.Demo*/** + tags: + - v** + +jobs: + build-and-test: + uses: SKProCH/CommonWorkflows/.github/workflows/build-publish.yml@main + secrets: + NUGET_KEY: ${{ secrets.NUGET_KEY }} + with: + publish-nightly: false + dotnet-version: 8 \ No newline at end of file diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml deleted file mode 100644 index ba6f4ed..0000000 --- a/.github/workflows/dotnet.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: .NET - -on: - push: - branches-ignore: master - pull_request: - branches: - - '**:**' - -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 7.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore -# - name: Test -# run: dotnet test --no-build --verbosity normal -# env: -# YandexProxy: ${{secrets.YANDEXPROXYURL}} \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 5b365f5..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Publish package - -on: - push: - branches: [ master, publish_test ] - -jobs: - build_and_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Setup .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 7.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore --configuration Release - - name: Publish to Nuget - run: dotnet nuget push "YandexMusicResolver/bin/Release/*.nupkg" --api-key ${{secrets.NUGETAPIKEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate - - name: Publish to GitHub Packages - run: dotnet nuget push "YandexMusicResolver/bin/Release/*.nupkg" --api-key ${{secrets.GITHUB_TOKEN}} --source https://nuget.pkg.github.com/SKProCH/index.json --skip-duplicate \ No newline at end of file diff --git a/YandexMusicResolver/YandexMusicResolver.csproj b/YandexMusicResolver/YandexMusicResolver.csproj index cc9e04f..109edc6 100644 --- a/YandexMusicResolver/YandexMusicResolver.csproj +++ b/YandexMusicResolver/YandexMusicResolver.csproj @@ -4,7 +4,7 @@ netstandard2.0 enable 11 - true + SKProCH yandex;music;yandexmusic;yandex.music https://github.com/SKProCH/YandexMusicResolver.git @@ -12,11 +12,7 @@ A library aimed at searching, resolving and getting direct links to tracks, playlists or albums in Yandex.Music. Can work without authorization. Git https://github.com/SKProCH/YandexMusicResolver - 6.0.0-preview1 MIT - -- Move ctors with HttpClient to factory methods - README.md icon.png