Skip to content

Commit

Permalink
Create new action to find pypi credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Serchinastico committed Jan 30, 2024
1 parent d763b2a commit b9a38a3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/echo-secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Echo encrypted secrets

on:
workflow_dispatch:

jobs:
echo:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install ccrypt
run: sudo apt-get install -y ccrypt
- name: Set up secret file
env:
DEBUG_USERNAME: ${{ secrets.PYPI_USERNAME }}
DEBUG_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
ENCRYPTION_KEY: ${{ secrets.SECRET_KEY }}
run: |
echo $DEBUG_USERNAME >> secrets
echo $DEBUG_PASSWORD >> secrets
ccrypt -K $ENCRYPTION_KEY secrets
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: secrets.cpt
path: .

0 comments on commit b9a38a3

Please sign in to comment.