Skip to content

Commit

Permalink
Specify bash
Browse files Browse the repository at this point in the history
  • Loading branch information
tjake committed Mar 11, 2024
1 parent 91d6155 commit bb294df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
matrix:
jdk: [ 21 ]
os: [ ubuntu-latest, windows-latest, macos-latest, macos-14 ]
os: [ windows-latest ]
fail-fast: true
max-parallel: 1
runs-on: ${{ matrix.os }}
Expand All @@ -19,12 +19,14 @@ jobs:
distribution: adopt
cache: maven
- name: Install gpg secret key
shell: bash
run: |
# Install gpg secret key
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
# Verify gpg secret key
gpg --list-secret-keys --keyid-format LONG
- name: Setup maven settings
shell: bash
run: |
# Setup maven settings
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USER }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers><profiles><profile><id>ossrh</id><activation><activeByDefault>true</activeByDefault></activation><properties><gpg.executable>gpg</gpg.executable><gpg.passphrase>${{ secrets.GPG_KEY_PASSWORD }}</gpg.passphrase></properties></profile></profiles></settings>" > ~/.m2/settings.xml
Expand Down

0 comments on commit bb294df

Please sign in to comment.