Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Update README.md

Update README.md #26

Workflow file for this run

name: Package & Upload to PyPI
on:
push:
branches: [master]
jobs:
package:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[gitbot]')"
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install requirements
run: |
pip install setuptools && \
pip install credstash twine && \
pip install -r requirements.txt -r requirements_dev.txt
- name: Build wheel
run: python setup.py bdist_wheel
- name: Fetch secrets
id: secrets
run: |
# failures in the set-env command don't cause the workflow to fail.
# calling this and then running set-env should flag up errors
echo "PYPI_TOKEN=$(credstash get pypi-keymaster-client-token)" >> $GITHUB_ENV
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CREDSTASH_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CREDSTASH_SECRET_KEY }}
AWS_DEFAULT_REGION: ca-central-1
- name: Push wheel to pypi
run: twine upload -u '__token__' -p "$PYPI_TOKEN" dist/*