Skip to content

Commit

Permalink
Update DesplegarMavenCentral.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
commonslibs authored Oct 1, 2024
1 parent 6e5bb99 commit 96ceb1a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/DesplegarMavenCentral.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,19 @@ jobs:
run: mvn versions:set -DnewVersion=${{ github.event.release.tag_name }}
# Se crea release en GITHUB.
# IMPORTANTE: SOLO FUNCIONA SI SE CREA UN TAG. Si se ejecuta el action a demanda, eliminar esta tarea
- name: Checkout code
uses: actions/checkout@v2
- name: Crear Release
uses: softprops/action-gh-release@v1
with:
files: |
build/**/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Checkout code
# uses: actions/checkout@v2
# - name: Crear Release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# build/**/*
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Se publica el JAR en Maven Central
- name: Publicamos JAR en Maven Central
run: mvn --no-transfer-progress --batch-mode -DskipTests -P CENTRAL-GITHUB deploy
env:
MAVEN_USERNAME: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_SIGNING_KEY_PASSWORD }}

0 comments on commit 96ceb1a

Please sign in to comment.