Skip to content

Commit

Permalink
Tweaks to publish action (#12)
Browse files Browse the repository at this point in the history
* Tweaks to publish action

* Scratch branch conditional
  • Loading branch information
javh authored Jul 15, 2024
1 parent 2a4b9de commit cb27cd1
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 64 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pypi-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Publish to PyPI

on:
workflow_dispatch
# push:
# tags: '^[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9

- name: Install system dependencies
run: |
sudo apt install pandoc
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest tox
- name: Build package
run: |
python -m tox -e clean,build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
63 changes: 0 additions & 63 deletions .github/workflows/pypi-publish.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

name: Test the library

on: workflow_dispatch
on:
workflow_dispatch
# push:
# branches: [main]
# pull_request:
Expand Down

0 comments on commit cb27cd1

Please sign in to comment.