-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (34 loc) · 1.04 KB
/
publish-to-test-pypi.yml
File metadata and controls
39 lines (34 loc) · 1.04 KB
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
name: Publish to Test PyPI
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-n-publish:
name: Build and publish to Test PyPI
runs-on: ubuntu-latest
environment:
name: test-pypi
url: https://test.pypi.org/project/precli
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python 3.14
uses: actions/setup-python@v6
with:
python-version: 3.14
- name: Install dependencies
run: |
sudo apt-get install gettext
pip install setuptools wheel
- name: Build a binary wheel and a source tarball
run: |
sh -c 'for lang in de en_GB es fr it ja ko pt_BR ru zh_CN zh_TW; do msgfmt -o precli/locale/$lang/LC_MESSAGES/messages.mo precli/locale/$lang/LC_MESSAGES/messages.po; done'
python setup.py sdist bdist_wheel
- name: Publish distribution to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/