Skip to content

Commit

Permalink
Remove no-longer necessary use of GitHub secrets
Browse files Browse the repository at this point in the history
This is because now everything is published on Central.
  • Loading branch information
stoyicker committed May 29, 2024
1 parent c85dd75 commit dec9c15
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 30 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/fossa-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ on:
required: true
fossaApiKey:
required: true
env:
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }}

jobs:
fossa-scan:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/instrumented-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
pat:
required: true

env:
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }}

jobs:
run-ktlint:
runs-on: ubuntu-latest
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/post-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
release:
types: [published]

env:
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.PACKAGES_PAT }}

jobs:
publish:
runs-on: ubuntu-latest
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
pat:
required: true

env:
ORG_GRADLE_PROJECT_githubToken: ${{ secrets.pat }}

jobs:
run-tests:
runs-on: ubuntu-latest
Expand Down
13 changes: 0 additions & 13 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<HttpHeaderAuthentication>("Authorization")
}
}
}

rootProject.name = "tidal-sdk-android"

buildCache {
Expand Down

0 comments on commit dec9c15

Please sign in to comment.