-
-
Notifications
You must be signed in to change notification settings - Fork 185
38 lines (31 loc) · 1005 Bytes
/
test-release.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
name: test-release
on:
push:
branches:
- master
workflow_run:
workflows:
- "production-tests"
types:
- completed
jobs:
test-release:
name: "Release on Test Pypi"
runs-on: ubuntu-latest
concurrency: release
steps:
- uses: actions/checkout@v2
- name: Install poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: View poetry version
run: poetry --version
- name: Update version
run: poetry version patch
- name: Build package
run: poetry build
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_TOKEN }}
repository_url: https://test.pypi.org/legacy/