generated from aboutcode-org/skeleton
-
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathpypi-release-minecode-pipeline.yml
More file actions
38 lines (30 loc) · 954 Bytes
/
pypi-release-minecode-pipeline.yml
File metadata and controls
38 lines (30 loc) · 954 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
name: Build minecode-pipeline Python distributions and publish on PyPI
on:
workflow_dispatch:
push:
tags:
- "minecode-pipelines/*"
jobs:
build-and-publish:
permissions:
id-token: write
name: Build and publish library to PyPI
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install flot
run: python -m pip install flot --user
- name: Build binary wheel and source tarball
run: python -m flot --pyproject pyproject-minecode_pipelines.toml --sdist --wheel --output-dir dist/
- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
- name: Upload built archives
uses: actions/upload-artifact@v4
with:
name: pypi_archives
path: dist/*