Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
tmaeno committed Jul 13, 2022
2 parents 8456fbb + bff0375 commit 4dbea71
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/workflows/publish_conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: publish_conda

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: publish-to-conda
uses: fcakyon/[email protected]
with:
subdir: 'conda'
anacondatoken: ${{ secrets.CONDA_TOKEN }}
platforms: 'win osx linux'
12 changes: 11 additions & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ name: PyPi
on:
release:
types: [published]

workflow_dispatch:

permissions:
contents: read
Expand All @@ -26,6 +28,9 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Get the version
id: get_version
run: echo ::set-output name=${GITHUB_REF/refs\/tags\//}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -37,5 +42,10 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
version_tag=${GITHUB_REF/refs\/tags\//}
version_tag=${version_tag/refs\/heads\//}
# echo ${GITHUB_REF}
# echo ${version_tag}
python main/tools/pypi/update_version.py ${version_tag}
python setup.py sdist bdist_wheel
twine upload */dist/idds*-${version}.tar.gz
twine upload */dist/idds*-${version_tag}.tar.gz

0 comments on commit 4dbea71

Please sign in to comment.