Version updates #44
This file contains hidden or 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
| name: Release | ||
|
Check failure on line 1 in .github/workflows/cd.yml
|
||
| env: | ||
| PROXYGEN_CLIENT_ID: ${{ secrets.PROXYGEN_CLIENT_ID }} | ||
| PROXYGEN_CLIENT_SECRET: ${{ secrets.PROXYGEN_CLIENT_SECRET }} | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout current branch | ||
| uses: actions/checkout@v3 | ||
| - name: Install Python 3.9 | ||
| uses: 5 | ||
| with: | ||
| python-version: 3.9 | ||
| - name: install deps | ||
| run: | | ||
| sudo apt install gnome-keyring | ||
| - name: install poetry | ||
| run: pip install --upgrade pip && pip install poetry | ||
| - name: set poetry credentials | ||
| run: poetry config pypi-token.pypi ${{ secrets.PYPI_TOKEN }} | ||
| - name: template credentials | ||
| run: | | ||
| sed -i "s/PROXYGEN_CLIENT_ID = \"\"/PROXYGEN_CLIENT_ID = \"$PROXYGEN_CLIENT_ID\"/g" proxygen_cli/lib/constants.py | ||
| sed -i "s/PROXYGEN_CLIENT_SECRET = \"\"/PROXYGEN_CLIENT_SECRET = \"$PROXYGEN_CLIENT_SECRET\"/g" proxygen_cli/lib/constants.py | ||
| - name: build | ||
| run: poetry build | ||
| - name: publish | ||
| run: | | ||
| poetry publish | ||