-
Notifications
You must be signed in to change notification settings - Fork 6
30 lines (28 loc) · 872 Bytes
/
cd.yml
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
name: Upload to PyPi
on:
release:
types: [created]
jobs:
upload:
runs-on: ubuntu-latest
environment:
name: release
url: https://pypi.org/p/pysand
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: "Install dependencies"
run: |
python3 -m pip install --upgrade pip
python3 -m pip install setuptools wheel twine
- name: "Build distributions"
run: |
python3 setup.py sdist bdist_wheel
- name: "Publish package distributions to PyPI"
uses: pypa/gh-action-pypi-publish@release/v1