-
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
Setup auto release workflow #313
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,86 @@ | ||
{ | ||
"plugins": [ | ||
"git-tag", | ||
"all-contributors", | ||
"conventional-commits", | ||
"first-time-contributor", | ||
"released" | ||
], | ||
"release": { | ||
"prerelease": true | ||
}, | ||
"owner": "physiopy", | ||
"repo": "phys2bids", | ||
"name": "Stefano Moia", | ||
"email": "s.moia@bcbl.eu", | ||
"labels": [ | ||
{ | ||
"name": "Majormod", | ||
"changelogTitle": "💥 Breaking Change", | ||
"description": "This PR breaks compatibility, and increments the major version (+1.0.0)", | ||
"releaseType": "major", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Minormod", | ||
"changelogTitle": "🚀 Enhancement", | ||
"description": "This PR generally closes an `Enhancement` issue. It increments the minor version (0.+1.0)", | ||
"releaseType": "minor", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Minormod-breaking", | ||
"changelogTitle": "💥 Breaking Change during development", | ||
"description": "For development only, this PR increments the minor version (0.+1.0) but breaks compatibility", | ||
"releaseType": "minor", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "BugFIX", | ||
"changelogTitle": "🐛 Bug Fix", | ||
"description": "This PR generally closes a `Bug` issue, and increments the patch version (0.0.+1)", | ||
"releaseType": "patch", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Documentation", | ||
"changelogTitle": "📝 Documentation", | ||
"description": "This issue or PR is about the documentation ", | ||
"releaseType": "none", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Testing", | ||
"changelogTitle": "⚠️ Tests", | ||
"description": "This is for testing features, writing tests or producing testing code", | ||
"releaseType": "none", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Internal", | ||
"changelogTitle": "🏠 Internal", | ||
"description": "Changes affect the internal API. It doesn't increase the version, but produces a changelog", | ||
"releaseType": "none", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Outreach", | ||
"changelogTitle": "🖋️ Outreach", | ||
"description": "Issue about outreaching of any form", | ||
"releaseType": "none", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Skip release", | ||
"description": "This PR preserves the current version when merged, and doesn't appear in the changelog", | ||
"releaseType": "skip", | ||
"overwrite": true | ||
}, | ||
{ | ||
"name": "Release", | ||
"description": "For PR only, trigger a release at the merge", | ||
"releaseType": "release", | ||
"overwrite": 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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# This workflows will create a release using auto when a PR is merged in master. | ||
|
||
name: Auto-release on PR merge | ||
|
||
on: | ||
# ATM, this is the closest trigger to a PR merging | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
auto-release: | ||
runs-on: ubuntu-18.04 | ||
# Set skip ci to avoid loops | ||
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')" | ||
# Set bash as default shell for jobs | ||
defaults: | ||
run: | ||
shell: bash | ||
steps: | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
with: | ||
# Fetch all history for all branches and tags | ||
fetch-depth: 0 | ||
# Use token with write access to the repo | ||
token: ${{ secrets.GH_TOKEN }} | ||
- name: Download and install latest auto | ||
env: | ||
# OS can be linux, macos, or win | ||
OS: linux | ||
# Retrieve URL of latest auto, download it, unzip it, and give exec permissions. | ||
run: | | ||
curl -vkL -o - $( curl -s https://api.github.com/repos/intuit/auto/releases/latest \ | ||
| grep browser_download_url | grep ${OS} | awk -F'"' '{print $4}') \ | ||
| gunzip > ~/auto | ||
chmod a+x ~/auto | ||
- name: Create release without version prefix | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
# Run auto release, don't use 'v' prefix, and be ultraverbose | ||
run: | | ||
~/auto release --no-version-prefix -vv |
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is this still valid when
phys2bids
is past alpha (i.e., 1.0.0+)?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.
We could remove it, but honestly it' mainly there to maintain the same configuration across
physiopy
. I doubt we'll ever use that label!