forked from Unidata/MetPy
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 880 Bytes
/
release.yml
File metadata and controls
40 lines (33 loc) · 880 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
39
40
name: Make Release
on:
release:
types:
- published
jobs:
packages:
name: Release Packages
environment:
name: PyPI
url: https://pypi.org/project/MetPy/
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 10
- name: Get tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Set up Python
uses: actions/[email protected]
with:
python-version: 3.x
- name: Install build tools
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools setuptools_scm wheel
- name: Build packages
run: python setup.py sdist bdist_wheel
- name: Publish Package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}