Skip to content

Commit 0cffc65

Browse files
committed
Add GitHub release workflow
1 parent 844ba70 commit 0cffc65

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: tag
2+
on:
3+
push:
4+
tags:
5+
# this is a glob, not a regexp
6+
- '[0-9]*'
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Clone repository
12+
uses: actions/checkout@v2
13+
14+
- name: Install dependencies
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y python3-setuptools
18+
19+
- name: Build release tarball
20+
run: ./setup.py sdist
21+
22+
- name: Create GitHub release
23+
uses: docker://antonyurchenko/git-release:latest
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
CHANGELOG_FILE: "NEWS"
27+
with:
28+
args: dist/python-dbusmock-*.tar.gz
29+
30+
- name: Create PyPy release
31+
uses: pypa/gh-action-pypi-publish@master
32+
with:
33+
user: __token__
34+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)