forked from netbox-community/netbox-floorplan-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) 路 850 Bytes
/
Copy pathpub-pypi.yml
File metadata and controls
36 lines (34 loc) 路 850 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
name: Publish Python 馃悕 distributions 馃摝 to PyPI and TestPyPI
on:
release:
types: [published]
jobs:
build-n-publish:
name: Build and publish Python 馃悕 distributions 馃摝 to PyPI and TestPyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@main
- name: Set up Python 3.12
uses: actions/setup-python@v1
with:
python-version: 3.12
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 馃摝 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1