-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.11 KB
/
cd.yml
File metadata and controls
43 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release
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.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- 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