Skip to content

Commit

Permalink
publish maven with b2-worker
Browse files Browse the repository at this point in the history
(cherry picked from commit e3fa2b4)
  • Loading branch information
deirn committed Jun 5, 2024
1 parent aea1738 commit c8c8404
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,8 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}
CURSEFORGE_API: ${{ secrets.CURSEFORGE_API }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
- uses: sylwit/install-b2-cli-action@ae80099fa373ec5aef6fa509aa3012fcdd936b6d
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
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- uses: actions/upload-artifact@v4
with:
name: badpackets-${{ steps.vars.outputs.git_hash }}
Expand Down
8 changes: 6 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ subprojects {
}

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 c8c8404

Please sign in to comment.