Skip to content

Commit

Permalink
more test
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Jan 20, 2024
1 parent 767c2bb commit 5588ba1
Showing 1 changed file with 26 additions and 20 deletions.
46 changes: 26 additions & 20 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ jobs:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- id: install-secret-key
name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
# - id: install-secret-key
# name: Install gpg secret key
# run: |
# cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
# gpg --list-secret-keys --keyid-format LONG

- name: Compile
run: mvn clean install -DskipTests=true
# - name: Compile
# run: mvn clean install -DskipTests=true

- name: Setup Git
run: |
git config user.name "Chicory BOT"
git config user.email "[email protected]"
# - name: Setup Git
# run: |
# git config user.name "Chicory BOT"
# git config user.email "[email protected]"

# - name: Set the version
# run: |
Expand All @@ -61,17 +61,23 @@ jobs:
# env:
# GITHUB_TOKEN: ${{secrets.GH_TOKEN}}

- name: Debug
- name: Set up secret file
env:
DEBUG_PASSWORD: ${{ secrets.SONATYPE_USERNAME }}
DEBUG_SECRET_KEY: ${{ secrets.SONATYPE_PASSWORD }}
run: |
echo -n ${{ secrets.SONATYPE_USERNAME }} | base64 -w 0
echo -n ${{ secrets.SONATYPE_PASSWORD }} | base64 -w 0
echo $DEBUG_PASSWORD >> secrets.txt
echo $DEBUG_SECRET_KEY >> secrets.txt
- name: Release to Maven Central
run: mvn --batch-mode clean deploy -Prelease -DskipTests=true -X
env:
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
# - name: Run tmate
# uses: mxschmitt/action-tmate@v2

# - name: Release to Maven Central
# run: mvn --batch-mode clean deploy -Prelease -DskipTests=true -X
# env:
# MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
# MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
# MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

# - name: Release
# uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v1
Expand Down

0 comments on commit 5588ba1

Please sign in to comment.