Skip to content

Commit

Permalink
Merge pull request #693 from htm-community/pypi3
Browse files Browse the repository at this point in the history
PYPI: publish build artifacts
  • Loading branch information
breznak authored Sep 26, 2019
2 parents 1e8921d + fcaf25c commit 06304d0
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/htmcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 06304d0

Please sign in to comment.