-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from scipion-em/devel
release devel
- Loading branch information
Showing
4 changed files
with
13 additions
and
46 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,47 +1,14 @@ | ||
# Workflow to send master to pypi and tag the branch: | ||
# You need to edit FOLDER_WITH_VERSION with the folder that has the __version__ value. | ||
|
||
# Workflow to send master to pypi and tag the branch | ||
name: master to pypi with comments and tag | ||
|
||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
# Triggers the workflow on push to the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
env: | ||
FOLDER_WITH_VERSION: modelangelo | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up MPI | ||
uses: mpi4py/setup-mpi@v1 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.8' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
pip install scipion-pyworkflow | ||
pip install scipion-em | ||
pip install scipion-app | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* -c "${{ secrets.PYPI_COMMENT }}" | ||
- name: Get version and tag | ||
run: | | ||
export PACKAGE_VERSION=$(python -c "import $FOLDER_WITH_VERSION; print('VERSION', 'v'+$FOLDER_WITH_VERSION.__version__)" | grep VERSION | sed "s/VERSION //g") | ||
git tag $PACKAGE_VERSION | ||
git push origin $PACKAGE_VERSION | ||
call-publish-workflow: | ||
uses: scipion-em/.github/.github/workflows/publish_and_tag.yml@master | ||
with: | ||
folder: modelangelo | ||
secrets: inherit |
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 |
---|---|---|
|
@@ -2,4 +2,3 @@ include *.txt | |
include *.rst | ||
include LICENSE | ||
include modelangelo/protocols.conf | ||
include modelangelo/logo.jpeg |
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