Skip to content

Commit

Permalink
Rewrite release workflow in github actions (#135) & bump package version
Browse files Browse the repository at this point in the history
  • Loading branch information
Legorooj committed Jun 26, 2021
1 parent 19de535 commit df3371d
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 55 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on: workflow_dispatch
name: Release

jobs:
release:
runs-on: ubuntu-latest

if: contains('["Legorooj", "bwoodsend", "rokm"]', github.event.actor)

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install Dependencies
run: python -m pip install -U towncrier twine wheel

- name: Build & Validate Bundles
run: |
python setup.py sdist bdist_wheel
python -m twine check dist/*
- name: Build Changelog
run: python -m towncrier --yes

- name: Upload to PyPI
env:
TWINE_PASSWORD: ${{ secrets.TWINETOKEN }}
run: python -m twine upload dist/* --disable-progress-bar -u __token__ --non-interactive

- name: Create Git Tag
run: git tag v$(python setup.py --version)

- name: Bump version
run: python setup.py bump --build

- name: Commit changes back into the repository
run: |
git config user.email "[email protected]"
git config user.name "github-actions"
git add src CHANGELOG.rst
git status
git commit -m "Release v$(python setup.py --version)"
git push && git push --tags
54 changes: 0 additions & 54 deletions azure-releaser.yml

This file was deleted.

2 changes: 1 addition & 1 deletion src/_pyinstaller_hooks_contrib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# ------------------------------------------------------------------

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

0 comments on commit df3371d

Please sign in to comment.