-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.02 KB
/
publish-test.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
# adapted from https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/
# with changes from https://blog.pypi.org/posts/2023-04-20-introducing-trusted-publishers/
name: Publish to TEST PyPI
on: push
jobs:
build-and-pypi-publish:
name: Build and upload release to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.x"
- name: Install Poetry
run: >-
python -m
pip install
poetry
--user
- name: Build Setup-Selenium-Testing
run: >-
python -m
poetry
build
- name: Publish distribution to TEST PyPI # only on new tag push
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/