forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 75
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 #693 from htm-community/pypi3
PYPI: publish build artifacts
- Loading branch information
Showing
1 changed file
with
37 additions
and
3 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 |
---|---|---|
|
@@ -85,15 +85,49 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/[email protected] | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
with: | ||
name: "dist-${{ matrix.os }}" | ||
path: build/Release/distr/dist | ||
|
||
|
||
publish-pypi: | ||
name: Publish package to PYPI | ||
needs: | ||
build | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
|
||
- uses: actions/checkout@master | ||
|
||
- uses: actions/download-artifact@master | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
with: | ||
name: dist-ubuntu-18.04 | ||
path: dist1/ | ||
|
||
- uses: actions/download-artifact@master | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
with: | ||
name: dist-macOs-latest | ||
path: dist2/ | ||
|
||
- uses: actions/download-artifact@master | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
with: | ||
name: dist-windows-2019 | ||
path: dist3/ | ||
|
||
- name: pre-PyPI | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | ||
#copy dist data to /dist, where PyPI Action expects it | ||
run: | | ||
cp -a build/Release/distr/dist . | ||
ls dist | ||
ls dist* | ||
- name: Publish to PyPI | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-18.04' | ||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && matrix.os == 'ubuntu-18.04' && 1==0 | ||
#FIXME temp disabled as pypi-publisher action must run on Linux only! | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
|