Skip to content

Commit

Permalink
chore: new deploy mode for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed May 1, 2024
1 parent 19e22fc commit 1e0ea23
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy Workflow
on:
push:
tags:
- "*"
jobs:
build:
name: Build Python
strategy:
matrix:
python-version: [2.7]
runs-on: ubuntu-latest
container: python:${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- run: apt-get update && apt-get install -y -q libpng-dev
- run: python --version
- run: python setup.py build
- run: python setup.py test
- run: |
pip install twine wheel
python setup.py sdist
python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 1e0ea23

Please sign in to comment.