Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Brooks authored Mar 5, 2022
1 parent 36a5561 commit ca3e2a4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
types: [released]

env:
SIGNING_KEY_RING_FILE: "${RUNNER_TEMP}key.gpg"
SIGNING_KEY_RING_FILE: "${RUNNER_TEMP}/key.gpg"

jobs:
publish:
Expand Down Expand Up @@ -36,13 +36,8 @@ jobs:
env:
GPG_KEY_CONTENTS: ${{ secrets.SONATYPE_BASE64_SIGNING_KEY }}
run: |
if [[ -z "$GPG_KEY_CONTENTS" ]]; then
echo 'The key is empty'
fi
git fetch --unshallow
sudo bash -c "echo '$GPG_KEY_CONTENTS' | base64 -d > '$SIGNING_KEY_RING_FILE'"
echo 'tail: ${GPG_KEY_CONTENTS: -6}'
du -h $SIGNING_KEY_RING_FILE
# Publish aar to maven central via sonatype repository
- name: Publish to MavenCentral
Expand Down

0 comments on commit ca3e2a4

Please sign in to comment.