-
Notifications
You must be signed in to change notification settings - Fork 13
33 lines (31 loc) · 897 Bytes
/
release.yaml
File metadata and controls
33 lines (31 loc) · 897 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
name: "Release SDK"
on:
release:
types: ["released"]
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: publish
url: https://pypi.org/p/lightspark
permissions:
id-token: write
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
fetch-depth: 10
- name: "Setup Python"
uses: "actions/setup-python@v4"
with:
cache: "pipenv"
cache-dependency-path: "sdk/Pipfile.lock"
- name: "Install pipenv"
run: "pip install pipenv wheel"
- name: "Install dependencies"
run: "rm -rf $(pipenv --venv) && pipenv install --dev"
- name: "Build dist"
run: "pipenv run python setup.py sdist --format=zip"
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1