Skip to content

Commit

Permalink
Fix deployment build to handle manylinux packages better
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Ben David committed Jun 27, 2021
1 parent 7bb8b64 commit 86f0787
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Build
on: [push, pull_request]

jobs:
lint:
if: github.event_name == 'push' && !startsWith(github.event.ref, 'refs/tags')
Expand Down Expand Up @@ -36,9 +35,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/[email protected]
- name: Install latest rust
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install dependencies
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Deploy
on:
release:
types: [published]

types: [released]
jobs:
deploy:
runs-on: ${{ matrix.os }}
Expand All @@ -18,15 +17,18 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install latest rust
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip maturin
- name: Build & Publish to PyPi
run: maturin publish --username __token__ --no-sdist --interpreter python${{matrix.python_version}} --manylinux=2014
- name: Publish Package
uses: messense/maturin-action@v1
with:
maturin-version: latest
command: publish
manylinux: 2014
args: --username=__token__ --no-sdist --interpreter=python${{ matrix.python-version }}
env:
MATURIN_PASSWORD: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pydomdisco"
version = "0.1.0"
version = "0.1.1"
authors = ["Gal Ben David <[email protected]>"]
edition = "2018"
description = "A fast async domain discovery tool written in Rust"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ strip = true

[tool.poetry]
name = "pydomdisco"
version = "0.1.0"
version = "0.1.1"
authors = ["Gal Ben David <[email protected]>"]
description = "A fast async domain discovery tool written in Rust"
readme = "README.md"
Expand Down

0 comments on commit 86f0787

Please sign in to comment.