-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Version bump should only happen on master * Changed minor to patch version bumps * Create release once version bumped on master * Restrict specific tasks to master only * Quick refactor on push event * Fix for invalid workflow sequence * Arguments sequence fix
- Loading branch information
Sebastian Maj
authored
Nov 10, 2021
1 parent
bbd03b4
commit 0020a41
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.11.0 | ||
current_version = 0.11.2 | ||
commit = True | ||
tag = True | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,6 @@ | ||
name: Publish Python 🐍 distribution 📦 to TestPyPI | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- master | ||
on: [push] | ||
|
||
jobs: | ||
rust-compile: | ||
|
@@ -76,6 +73,7 @@ jobs: | |
- name: Install bump2version | ||
run: | | ||
python -m pip install bump2version | ||
if: github.ref == 'refs/heads/master' | ||
|
||
- name: Assign Git User Email | ||
run: | | ||
|
@@ -111,8 +109,29 @@ jobs: | |
uses: tj-actions/[email protected] | ||
|
||
- name: Publish distribution 📦 to Test PyPI | ||
if: github.ref == 'refs/heads/master' | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
if: github.ref == 'refs/heads/master' | ||
|
||
release: | ||
runs-on: ubuntu-latest | ||
needs: [build-n-publish] | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Create release | ||
uses: Roang-zero1/github-create-release-action@master | ||
with: | ||
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create GitHub release | ||
uses: Roang-zero1/github-upload-release-artifacts-action@master | ||
with: | ||
args: '[ | ||
, ./dist/* | ||
]' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |