Skip to content

Commit

Permalink
update github workflows based on zigpy/zigpy
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyatuning committed May 12, 2020
1 parent 3000303 commit 7e73845
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 27 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish distributions to PyPI and TestPyPI
on:
push:
tags:
- "*"

jobs:
build-and-publish:
name: Build and publish distributions to PyPI and TestPyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
version: 3.7
- name: Install wheel
run: >-
pip install wheel
- name: Build
run: >-
python3 version.py ${{ github.ref }}
python3 setup.py sdist bdist_wheel
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/pythonpublish.yml

This file was deleted.

16 changes: 16 additions & 0 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Release Management

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master

jobs:
update_draft_release:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: toolmantim/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7e73845

Please sign in to comment.