Skip to content

Commit

Permalink
All into one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Nov 21, 2022
1 parent 64bfe90 commit ad5ef4b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 33 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ name: cicd

on:
push:
tags:
- '*'
branches: [ main ]
paths:
- '.github/workflows/cicd.yml'
- 'sigexport/**'
- '.dockerignore'
- 'Dockerfile'
- 'pyproject.toml'
- 'setup.cfg'
- 'setup.py'
schedule:
- cron: '0 2 2 * *'
workflow_dispatch:
Expand Down Expand Up @@ -70,3 +70,26 @@ jobs:
pip install . pytest pytest-cov
pytest --cov sigexport
publish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: "3.10"

- name: Build
run: |
pip install build
python -m build
- name: Publish
# mimics: twine upload dist/* --skip-existing
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
skip_existing: true
31 changes: 0 additions & 31 deletions .github/workflows/pypi.yml

This file was deleted.

0 comments on commit ad5ef4b

Please sign in to comment.