-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added tagged-release github action for automated release creation
- updated version in setup.py - included release instructions in readme
- Loading branch information
1 parent
6c34f8c
commit 1620c6e
Showing
3 changed files
with
62 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# this action automates the process of creating a github release | ||
# | ||
# you can prompt this action by creating a git tag that follows semantic versioning (https://semver.org/) major.minor.patch | ||
# e.g. in command line: git tag -a v0.1.2 -m 'tag comment about tag' | ||
# you'll then need to do `git push --tags` to push the tag refs to github | ||
# this action will then run | ||
|
||
name: "tagged-release" | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
tagged-release: | ||
name: "Tagged Release" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: goanpeca/setup-miniconda@v1 | ||
with: | ||
environment-file: environment.yml | ||
python-version: 3.8 | ||
auto-activate-base: false | ||
activate-environment: ramp-ua | ||
|
||
- name: install package and test | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py install | ||
pytest | ||
echo "Tests complete" | ||
- name: create sdist | ||
shell: bash -l {0} | ||
run: | | ||
python setup.py sdist | ||
- uses: "marvinpinto/action-automatic-releases@latest" | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
dist/*.tar.gz |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="RAMP-UA", | ||
version="0.2.1dev", | ||
version="0.3.0dev", | ||
author="RAMP UA Team", | ||
author_email="[email protected]", | ||
description="The RAMP Urban Analytics package", | ||
|