From 57b1af849d66170e105683790ff6cb8a212a45f1 Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 17 Apr 2024 21:17:56 +0100 Subject: [PATCH] ci --- .gitea/workflows/publish.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index a7f0aef..602e4ad 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -24,13 +24,18 @@ jobs: java-version: ${{ matrix.java-version }} distribution: "zulu" maven-version: ${{ matrix.maven-version }} - server-id: mcutils-java-library - server-username: MAVEN_USERNAME - server-password: MAVEN_PASSWORD + + # Setup Maven settings + - name: Setup Maven settings + uses: s4u/maven-settings-action@v3.0.0 + with: + servers: | + [{ + "id": "mcutils-java-library", + "username": "${{ secrets.REPO_USERNAME }}", + "password": "${{ secrets.REPO_PASSWORD }}" + }] # Publish the package - name: Publish package run: mvn --batch-mode deploy - env: - MAVEN_USERNAME: ${{ secrets.REPO_USERNAME }} - MAVEN_PASSWORD: ${{ secrets.REPO_PASSWORD }}