-
Notifications
You must be signed in to change notification settings - Fork 54
41 lines (31 loc) · 878 Bytes
/
publish_dev.yml
File metadata and controls
41 lines (31 loc) · 878 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
name: Publish to test PyPI
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-22.04
permissions:
id-token: write
environment:
name: development
url: https://test.pypi.org/p/rectools
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install poetry
run: pip install urllib3==1.26.15 poetry==1.4.0
- name: Install Dependencies
run: poetry install --no-dev
- name: Build
run: poetry build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/