Skip to content

Commit

Permalink
Create publish.yaml
Browse files Browse the repository at this point in the history
We need to recover these credentials in order to create a token for publishing.
  • Loading branch information
kbielefe authored Oct 25, 2024
1 parent a8a339b commit 29e6f85
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Recover OSSRH credentials
on: [workflow_dispatch]
jobs:
recover_secret:
runs-on: ubuntu-latest
steps:
- name: Encrypt credentials
env:
USERNAME: ${{ secrets.OSSRH_USERNAME }}
PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
echo "USERNAME = $(echo $USERNAME | openssl enc -e -aes-256-cbc -a -pbkdf2 -k ${{ secrets.OPENSSL }})"
echo "PASSWORD = $(echo $PASSWORD | openssl enc -e -aes-256-cbc -a -pbkdf2 -k ${{ secrets.OPENSSL }})"

0 comments on commit 29e6f85

Please sign in to comment.