diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..aec6d9ddb --- /dev/null +++ b/.github/workflows/release.yml @@ -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 "github-actions@github.com" + 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 + diff --git a/azure-releaser.yml b/azure-releaser.yml deleted file mode 100644 index 7554c1591..000000000 --- a/azure-releaser.yml +++ /dev/null @@ -1,54 +0,0 @@ -trigger: none -pr: none - -pool: - vmImage: 'ubuntu-latest' - -steps: -- checkout: self - # Save the credentials used for repo checkout; we use them to push back into the repo - persistCredentials: true - -# Use the correct python version -- task: UsePythonVersion@0 - inputs: - versionSpec: '3.7' - displayName: 'Use Python 3.7' - -- script: python -m pip install towncrier twine wheel - displayName: "Install dependencies" - -- script: | - python setup.py sdist bdist_wheel - python -m twine check dist/* - displayName: 'Build distribution archives' - -- script: python -m towncrier --yes - displayName: "Build changelog" - -- script: twine upload dist/* --disable-progress-bar -u __token__ -p $(twineToken) --non-interactive - displayName: 'Upload package to PyPI' - -- script: git tag v$(python setup.py --version) - displayName: "Create the release tag" - -- script: python setup.py bump --build - displayName: "Bump the package version" - -- script: git checkout master - displayName: "Checkout the master branch for the release." - -- script: git add src && git add CHANGELOG.rst && git status - displayName: "Add the changes to git" - -- script: git config user.email "legorooj@protonmail.com" && git config user.name "legorooj" - displayName: "Set the git user" - -- script: git commit -m "Bump version and build changelog [skip ci]" - displayName: "Commit the git version bump" - -- script: git tag -l - displayName: "List the tags" - -- script: git push && git push --tags - displayName: "Push the changes into the repo" diff --git a/src/_pyinstaller_hooks_contrib/__init__.py b/src/_pyinstaller_hooks_contrib/__init__.py index b0b115622..31b2f2928 100644 --- a/src/_pyinstaller_hooks_contrib/__init__.py +++ b/src/_pyinstaller_hooks_contrib/__init__.py @@ -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'