Skip to content

Commit

Permalink
refactor: change it to trigger
Browse files Browse the repository at this point in the history
Signed-off-by: Sarthak Shyngle <50234097+Sarthak160@users.noreply.github.com>
  • Loading branch information
Sarthak160 committed Jun 24, 2024
1 parent abe7652 commit 1ec570d
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,22 @@ jobs:
distribution: 'temurin'
cache: 'maven'

# - name: Decode GPG Key
# run: |
# echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode > ${{ github.workspace }}/gpg_key.asc


# - name: Display encoded key format (Debugging only - do not use in production)
# run: cat ${{ github.workspace }}/gpg_key.asc
# This step creates the Maven settings.xml with the server credentials
- name: Setup Maven settings
run: |
mkdir -p ~/.m2
echo '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>ossrh</id>
<username>${{ secrets.MAVEN_USERNAME }}</username>
<password>${{ secrets.MAVEN_PASSWORD }}</password>
</server>
</servers>
</settings>' > ~/.m2/settings.xml
- name: Import GPG Key
uses: crazy-max/ghaction-import-gpg@v4
Expand Down

0 comments on commit 1ec570d

Please sign in to comment.