-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new action to find pypi credentials
- Loading branch information
1 parent
d763b2a
commit b9a38a3
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: . |