From dec9c15618669c6b19479e98509eba7a3faa7d29 Mon Sep 17 00:00:00 2001 From: Jorge Antonio Diaz-Benito Soriano Date: Wed, 29 May 2024 10:58:00 +0200 Subject: [PATCH] Remove no-longer necessary use of GitHub secrets This is because now everything is published on Central. --- .github/workflows/create-release.yml | 2 -- .github/workflows/fossa-scan.yml | 2 -- .github/workflows/instrumented-test.yml | 2 -- .github/workflows/lint.yml | 3 --- .github/workflows/post-merge.yml | 1 - .github/workflows/publish-pages.yml | 1 - .github/workflows/publish-release.yml | 3 --- .github/workflows/unit-test.yml | 3 --- settings.gradle.kts | 13 ------------- 9 files changed, 30 deletions(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index f27ce6da..17ab4370 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -14,8 +14,6 @@ jobs: expose-tag: name: Expose Tag runs-on: ubuntu-latest - env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }} outputs: module-tag: ${{ steps.expose-tag.outputs.tag }} module-version: ${{ steps.expose-tag.outputs.version }} diff --git a/.github/workflows/fossa-scan.yml b/.github/workflows/fossa-scan.yml index 185a3632..4bee8241 100644 --- a/.github/workflows/fossa-scan.yml +++ b/.github/workflows/fossa-scan.yml @@ -7,8 +7,6 @@ on: required: true fossaApiKey: required: true -env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }} jobs: fossa-scan: diff --git a/.github/workflows/instrumented-test.yml b/.github/workflows/instrumented-test.yml index f3270054..e426110e 100644 --- a/.github/workflows/instrumented-test.yml +++ b/.github/workflows/instrumented-test.yml @@ -9,8 +9,6 @@ on: jobs: run-instrumented-tests: runs-on: ubuntu-latest - env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }} name: Run instrumented tests steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index eca38054..a7fc33ec 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,9 +6,6 @@ on: pat: required: true -env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }} - jobs: run-ktlint: runs-on: ubuntu-latest diff --git a/.github/workflows/post-merge.yml b/.github/workflows/post-merge.yml index c289b86a..8ff84a47 100644 --- a/.github/workflows/post-merge.yml +++ b/.github/workflows/post-merge.yml @@ -15,7 +15,6 @@ jobs: modules: ${{ steps.build-matrix.outputs.modules}} env: REF_BEFORE: ${{ github.event.before }} - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }} steps: - uses: actions/setup-java@v4 with: diff --git a/.github/workflows/publish-pages.yml b/.github/workflows/publish-pages.yml index da52db1d..3237dead 100644 --- a/.github/workflows/publish-pages.yml +++ b/.github/workflows/publish-pages.yml @@ -12,7 +12,6 @@ jobs: name: github-pages url: ${{ steps.deployment.outputs.page_url }} env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.PACKAGES_PAT }} PATH_CLONE_WORK: ${{ github.workspace }}/${{ github.repository }} PATH_CLONE_SUPPORT: ${{ github.workspace }}/support runs-on: ubuntu-latest diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 713d2a48..42bf8e7a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -4,9 +4,6 @@ on: release: types: [published] -env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.PACKAGES_PAT }} - jobs: publish: runs-on: ubuntu-latest diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 1566f6d3..76105d00 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -5,9 +5,6 @@ on: pat: required: true -env: - ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }} - jobs: run-tests: runs-on: ubuntu-latest diff --git a/settings.gradle.kts b/settings.gradle.kts index 30ac5146..9c970ca8 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -12,25 +12,12 @@ dependencyResolutionManagement { repositories { google() mavenCentral() - tidalMusicGithub("tidal-sdk-android") maven { url = uri("https://jitpack.io") } } } -fun RepositoryHandler.tidalMusicGithub(repository: String) { - maven(url = "https://maven.pkg.github.com/tidal-music/$repository/") { - credentials(HttpHeaderCredentials::class) { - name = "Authorization" - value = "Bearer ${extra["githubToken"]}" - } - authentication { - create("Authorization") - } - } -} - rootProject.name = "tidal-sdk-android" buildCache {