diff --git a/.github/workflows/htmcore.yml b/.github/workflows/htmcore.yml index a5235048e8..737af891c9 100644 --- a/.github/workflows/htmcore.yml +++ b/.github/workflows/htmcore.yml @@ -85,15 +85,49 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/upload-artifact@v1.0.0 + 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__