-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.17 KB
/
release.yml
File metadata and controls
51 lines (40 loc) · 1.17 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
40
41
42
43
44
45
46
47
48
49
50
51
name: Build & Publish to PyPI
on:
push:
tags: [ 'v*' ] # e.g. v0.2.2
release:
types: [ published ]
jobs:
build-and-publish:
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/haveno-client/
permissions:
contents: read
steps:
- name: Clean dist
run: rm -rf dist build *.egg-info **/*.egg-info
- name: Build sdist & wheel
run: python -m build
- name: Verify metadata
run: python -m twine check dist/*
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build tools
run: |
python -m pip install --upgrade pip setuptools wheel build
- name: Build sdist & wheel
run: |
python -m build
- name: Publish to PyPI (token auth)
uses: pypa/gh-action-pypi-publish@v1.10.3
with:
packages-dir: dist
password: ${{ secrets.PYPI_TOKEN }} # create this repo secret with a real PyPI token (pypi-...)
skip-existing: true
verify-metadata: true