-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 1.08 KB
/
deploy.yml
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
name: Deploy Package to PyPi
on:
release:
types: [published]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10"]
name: Deploy Package to PyPi
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# cache: 'pip'
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Set Version
run: echo "VERSION=$(sh .github/scripts/get_version.sh)" >> $GITHUB_ENV
- name: Upgrade package installers
run: python -m pip install --upgrade pip
- name: Install Twine
run: python -m pip install twine
- name: Build package distribution
run: python setup.py sdist --dist-dir ./dist
- name: Upload package to PyPi
run: twine upload -u __token__ -p "${{ secrets.PYPI_TOKEN }}" "./dist/pdfconduit-${VERSION}.tar.gz"