-
Notifications
You must be signed in to change notification settings - Fork 51
30 lines (26 loc) · 923 Bytes
/
release.yaml
File metadata and controls
30 lines (26 loc) · 923 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
---
name: Release
on: [push]
jobs:
release:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cmocean
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install -U pip wheel setuptools setuptools-scm twine
# python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine
- name: Build distributions
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # v1.12.4