Skip to content

Commit

Permalink
ci: upload to pypi on release (semgrep#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
brendongo authored Sep 11, 2020
1 parent fb9607d commit abe8ed3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,31 @@ jobs:
working-directory: /opt/python/cp36-cp36m/bin/
run: ./semgrep -l python ../lib/python3.6/code.py -e '$X == $X'

upload-wheels:
runs-on: 'ubuntu-16.04'
needs: [test-wheels-manylinux, build-wheels-osx]
steps:
- name: Download Artifact
uses: actions/download-artifact@v1
with:
name: manylinux-wheel
path: manylinux-wheel
- name: Download Osx Artifact
uses: actions/download-artifact@v1
with:
name: osx-wheel
path: osx-wheel
- name: Unzip
run: unzip ./manylinux-wheel/dist.zip
- name: Unzip OSX Wheel
# Don't unzip tar.gz because it already exists from ./manylinux-wheel/dist.zip.
run: unzip ./osx-wheel/dist.zip "*.whl"
- name: Publish to Pypi
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_upload_token }}

homebrew-core-pr:
name: Update on Homebrew-Core
runs-on: ubuntu-latest
Expand Down

0 comments on commit abe8ed3

Please sign in to comment.