Skip to content

Commit 7e73845

Browse files
committed
update github workflows based on zigpy/zigpy
1 parent 3000303 commit 7e73845

File tree

3 files changed

+43
-27
lines changed

3 files changed

+43
-27
lines changed

.github/workflows/publish-to-pypi.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish distributions to PyPI and TestPyPI
2+
on:
3+
push:
4+
tags:
5+
- "*"
6+
7+
jobs:
8+
build-and-publish:
9+
name: Build and publish distributions to PyPI and TestPyPI
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- name: Set up Python 3.7
14+
uses: actions/setup-python@v1
15+
with:
16+
version: 3.7
17+
- name: Install wheel
18+
run: >-
19+
pip install wheel
20+
- name: Build
21+
run: >-
22+
python3 version.py ${{ github.ref }}
23+
python3 setup.py sdist bdist_wheel
24+
- name: Publish distribution to PyPI
25+
uses: pypa/gh-action-pypi-publish@master
26+
with:
27+
password: ${{ secrets.PYPI_TOKEN }}

.github/workflows/pythonpublish.yml

-27
This file was deleted.
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release Management
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- master
8+
9+
jobs:
10+
update_draft_release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
# Drafts your next Release notes as Pull Requests are merged into "master"
14+
- uses: toolmantim/[email protected]
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)