Skip to content

Commit

Permalink
Update publish and release actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jvsguerra committed Jun 20, 2021
1 parent 02f1b77 commit 1f0b09f
Showing 1 changed file with 32 additions and 29 deletions.
61 changes: 32 additions & 29 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,35 @@ jobs:
# twine upload dist/*
continue-on-error: true

deploy-windows:
runs-on: windows-latest
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install swig
if: "startsWith(runner.os, 'windows')"
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.0.2.zip","swigwin-4.0.2.zip");
Expand-Archive .\swigwin-4.0.2.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.0.2" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: build wheel
run: |
pip install wheel
python setup.py bdist_wheel
- name: upload wheel
run: |
pip install twine
# twine upload dist/*
continue-on-error: true
# deploy-windows:
# runs-on: windows-latest
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# strategy:
# matrix:
# python-version: [3.7, 3.8, 3.9]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install swig
# if: "startsWith(runner.os, 'windows')"
# run: |
# (New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.0.2.zip","swigwin-4.0.2.zip");
# Expand-Archive .\swigwin-4.0.2.zip .;
# echo "$((Get-Item .).FullName)/swigwin-4.0.2" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
# - name: Install ldap
# run: |
# pip install python-ldap
# - name: build wheel
# run: |
# pip install wheel
# python setup.py bdist_wheel
# - name: upload wheel
# run: |
# pip install twine
# # twine upload dist/*
# continue-on-error: true

0 comments on commit 1f0b09f

Please sign in to comment.