Skip to content

Version updates

Version updates #44

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd.yml

Invalid workflow file

(Line: 19, Col: 15): Expected format {org}/{repo}[/path]@ref. Actual '5'
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