Skip to content

Commit

Permalink
ci: grab client_secrets from github secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Feb 25, 2023
1 parent 991c6fa commit 1f0ccd7
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,21 @@ jobs:
name: "Publish to PyPI"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
shell: bash
working-directory: ${{ github.workspace }}
run: |
python -m pip install --upgrade pip setuptools wheel twine
echo '${{ secrets.CLIENT_SECRETS }}' > ./frcuploader/client_secrets.json
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*

0 comments on commit 1f0ccd7

Please sign in to comment.