Skip to content

Commit 8003b05

Browse files
committed
Rewrite release workflow in github actions (#135)
1 parent 19de535 commit 8003b05

File tree

3 files changed

+49
-55
lines changed

3 files changed

+49
-55
lines changed

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
on: workflow_dispatch
2+
name: Release
3+
4+
jobs:
5+
release:
6+
runs-on: ubuntu-latest
7+
8+
if: contains('["Legorooj", "bwoodsend", "rokm"]', github.event.actor)
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- name: Setup Python
14+
uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.9
17+
18+
- name: Install Dependencies
19+
run: python -m pip install -U towncrier twine wheel
20+
21+
- name: Build & Validate Bundles
22+
run: |
23+
python setup.py sdist bdist_wheel
24+
python -m twine check dist/*
25+
26+
- name: Build Changelog
27+
run: python -m towncrier --yes
28+
29+
- name: Upload to PyPI
30+
env:
31+
TWINE_PASSWORD: ${{ secrets.TWINETOKEN }}
32+
run: python -m twine upload dist/* --disable-progress-bar -u __token__ --non-interactive
33+
34+
- name: Create Git Tag
35+
run: git tag v$(python setup.py --version)
36+
37+
- name: Bump version
38+
run: python setup.py bump --build
39+
40+
- name: Commit changes back into the repository
41+
run: |
42+
git config user.email "github-actions@github.com"
43+
git config user.name "github-actions"
44+
git add src CHANGELOG.rst
45+
git status
46+
git commit -m "Release v$(python setup.py --version)"
47+
git push && git push --tags
48+

azure-releaser.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

src/_pyinstaller_hooks_contrib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
# SPDX-License-Identifier: GPL-2.0-or-later
1111
# ------------------------------------------------------------------
1212

13-
__version__ = '2021.1'
13+
__version__ = '2021.2'
1414
__maintainer__ = 'Legorooj, bwoodsend'
1515
__uri__ = 'https://github.com/pyinstaller/pyinstaller-hooks-contrib'

0 commit comments

Comments
 (0)