-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement automatic release #181
Changes from 11 commits
99b7330
0b0eb46
cbb8a46
13d654d
891400e
39d6947
c63d51d
a0801cf
12680a7
cc2374f
52b919c
d9c7543
910d84d
fd93556
5dcae93
25b1b95
3c1d455
9fdc2ee
06a3e17
65c0dbd
114371b
20ba0d9
af4c39a
e60c20d
0391932
0de335e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"plugins": [ | ||
"git-tag", | ||
"all-contributors", | ||
"conventional-commits", | ||
"first-time-contributor", | ||
"released" | ||
], | ||
"release": { | ||
"prerelease": true | ||
}, | ||
"prereleaseBranches": [ | ||
"master" | ||
], | ||
"owner": "physiopy", | ||
"repo": "phys2bids", | ||
"name": "Stefano Moia", | ||
"email": "s.moia@bcbl.eu", | ||
"labels": [ | ||
{ | ||
"name": "Majormod", | ||
"changelogTitle": "💥 Breaking Change", | ||
"description": "Increment the major version when merged", | ||
"releaseType": "major", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Minormod", | ||
"changelogTitle": "🚀 Enhancement", | ||
"description": "Increment the minor version when merged", | ||
"releaseType": "minor", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "BugFIX", | ||
"changelogTitle": "🐛 Bug Fix", | ||
"description": "Increment the patch version when merged", | ||
"releaseType": "patch", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Skip release", | ||
"description": "Preserve the current version when merged", | ||
"releaseType": "skip", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Release", | ||
"description": "Create a release when this pr is merged", | ||
"releaseType": "release", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Internal", | ||
"changelogTitle": "🏠 Internal", | ||
"description": "Changes only affect the internal API", | ||
"releaseType": "none", | ||
"overwrite": true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why_ internal relases are not even a patch? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
}, | ||
{ | ||
"name": "Documentation", | ||
"changelogTitle": "📝 Documentation", | ||
"description": "Changes only affect the documentation", | ||
"releaseType": "none", | ||
"overwrite": true | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# This workflows will upload a Python Package using Twine when a release is created | ||
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries | ||
|
||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: 3.7 | ||
smoia marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python -m python setup.py sdist bdist_wheel | ||
python -m twine upload dist/* |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# import sys | ||
# import fnmatch | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might be interested in [this](https://intuit.github.io/auto/pages/generated/shipit.html#without-%22next%22-branch-(--only-graduate-with-release-label)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Wouldn't that unable us to automatically publish a release after every merged PR though?
From what I understand, that would trigger a new release only when the label
release
is added to the PR.Our intentions are a bit different: we are an open development project, that wants to release as soon as there is something new, even if we're still in beta production stage.
The "prereleaseBranches" set on master is temporary, until we get out of beta stage.
Then we will remove it.