diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6baf753..f5fb245 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,13 +2,6 @@ name: Build on: [ push ] -env: - GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} - GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} - GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_OSSRH_DEPLOYER }} - SONATYPE_TOKEN: ${{ secrets.SONATYPE_OSSRH_TOKEN }} - jobs: build: runs-on: ubuntu-latest @@ -26,11 +19,12 @@ jobs: - name: Build with Gradle run: ./gradlew test build --no-daemon - - name: Publish to Sonatype + - name: Publish with Gradle if: github.ref == 'refs/heads/master' env: GPG_PASSPHRASE: ${{ secrets.GPG_KEY_PASSPHRASE }} GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} - SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} - SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + USERNAME: ${{ secrets.REPO_USER }} + TOKEN: ${{ secrets.REPO_TOKEN }} + run: ./gradlew publish --no-daemon \ No newline at end of file diff --git a/README.md b/README.md index 60ee2df..78c61a6 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@
@@ -24,6 +23,10 @@ ![Sidebar](https://github.com/CatCoderr/ProtocolSidebar/raw/master/assets/sidebar.gif) +⚠️ **Note**: starting from **6.2.7-SNAPSHOT** version, the repository has been moved to https://catcoder.pl.ua/snapshots. +You can find URL for Maven and Gradle in the [Adding to your project](#adding-to-your-project) section. + + ## Donations [![Buy Me a Coffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-Donate%20Now-yellow?style=for-the-badge&logo=buy-me-a-coffee)](https://www.buymeacoffee.com/catcoderr) @@ -58,8 +61,8 @@ or [maven-shade-plugin](https://maven.apache.org/plugins/maven-shade-plugin/) (f ```xml