-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (34 loc) · 1001 Bytes
/
deploy_to_test.yml
File metadata and controls
43 lines (34 loc) · 1001 Bytes
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: Publish to Test.PyPI.org
on:
push:
branches:
- develop
jobs:
publish:
environment:
name: Development
name: Publish distribution 📦 to Test PyPI
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Installing python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Installing git
run: pip install gitpython
- name: Install dependencies
run: pip install -r requirements.txt
- name: Generating version file
run: python freeze_version.py
- name: Setup python wheel
run: pip install wheel
- name: Building Package
run: python setup.py bdist_wheel
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip_existing: true
password: ${{ secrets.PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/