Updating the release process, and validating credentials are active (#386)

* pypi release improvements, and credential checks

* deps updates along the way
This commit is contained in:
Chayim 2022-10-06 18:09:43 +03:00 committed by GitHub
parent 660db8f8f5
commit 4833a3198e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 181 additions and 581 deletions

27
.github/workflows/check-pypi.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Check if required secrets are set to publish to Pypi
on:
schedule:
cron: '5 5 * * *'
jobs:
checksecret:
name: check if PYPI_TOKEN and TESTPYPI_TOKEN are set in github secrets
runs-on: ubuntu-latest
steps:
- name: Check PYPI_TOKEN
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
if ${{ env.PYPI_TOKEN == '' }} ; then
echo "PYPI_TOKEN secret is not set"
exit 1
fi
- name: Check TESTPYPI_TOKEN
env:
TESTPYPI_TOKEN: ${{ secrets.TESTPYPI_TOKEN }}
run: |
if ${{ env.TESTPYPI_TOKEN == '' }} ; then
echo "TESTPYPI_TOKEN secret is not set"
exit 1
fi