8000 Create test-pypi-publish · fossabot/document-api-python@dcd9d25 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dcd9d25

Browse files
authored
Create test-pypi-publish
1 parent 2018aab commit dcd9d25

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test-pypi-publish

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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/

0 commit comments

Comments
 (0)
0