File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ Publish to Test-Py-Pi
2
+ environment:
3
+ name: test-pypi
4
+
5
+ on:
6
+ push:
7
+ paths-ignore:
8
+ - 'docs/**'
9
+ tags:
10
+ - 'test*'
11
+
12
+ jobs:
13
+ build:
14
+
15
+ runs-on: ubuntu-latest
16
+ strategy:
17
+ fail-fast: false
18
+ matrix:
19
+ python-version: [3.9]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v2
23
+ - name: Set up Python ${{ matrix.python-version }}
24
+ uses: actions/setup-python@v2
25
+ with:
26
+ python-version: ${{ matrix.python-version }}
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
+ - name: Package
32
+ run: |
33
+ python setup.py sdist
34
+ python setup.py bdist_wheel
35
+ - name: Publish 📦 to Test PyPI
36
+ uses: pypa/gh-action-pypi-publish@master
37
+ with:
38
+ password: ${{ secrets.Test_PyPI_token }}
39
+ repository_url: https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments