Skip to content

Commit

Permalink
Merge pull request #8 from DavidStirling/compat-4-2-actions
Browse files Browse the repository at this point in the history
New build system
  • Loading branch information
emilroz authored Apr 26, 2024
2 parents f9f1602 + 8bf4019 commit 5f11579
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 87 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/test.yml

This file was deleted.

48 changes: 28 additions & 20 deletions .github/workflows/upload.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: Upload
name: Build
on:
release:
types: [created]
push:
pull_request:

jobs:
deploy:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Upload
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Build package
run: |
git fetch --prune --unshallow --tags --force
python -m pip install --upgrade pip
python -m pip install setuptools wheel
python setup.py sdist bdist_wheel
- name: Artifact upload
uses: actions/upload-artifact@v4
with:
path: dist/*.whl
retention-days: 30
- name: Create release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: dist/*.whl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 5f11579

Please sign in to comment.