Skip to content

Commit

Permalink
publish maven using b2-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
deirn committed May 26, 2024
1 parent 7268c56 commit 5bb4d97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,10 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
CURSEFORGE_API: ${{ secrets.CURSEFORGE_API }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
CHANGELOG: |
${{ fromJSON(steps.parse.outputs.changelog) }}
- uses: sylwit/install-b2-cli-action@ae80099fa373ec5aef6fa509aa3012fcdd936b6d
with:
version: '3.19.1'
env:
B2_APPLICATION_KEY_ID: ${{ secrets.B2_APPLICATION_KEY_ID }}
B2_APPLICATION_KEY: ${{ secrets.B2_APPLICATION_KEY }}
- run: |
b2 sync --replaceNewer .b2 b2://maven-bai-lol
b2 clear-account
- uses: softprops/action-gh-release@v2
with:
name: "[${{ steps.parse.outputs.minecraft }}] ${{ steps.parse.outputs.version }}"
Expand Down
9 changes: 7 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,14 @@ subprojects {
password = env["GITHUB_TOKEN"]
}
}

maven {
name = "B2"
url = rootProject.projectDir.resolve(".b2").toURI()
url = uri("https://maven4.bai.lol")
name = "Badasintended"
credentials {
username = env["MAVEN_USERNAME"]
password = env["MAVEN_PASSWORD"]
}
}
}
}
Expand Down

0 comments on commit 5bb4d97

Please sign in to comment.