Skip to content

Commit

Permalink
Adds a Github Action that publishes to the PyPI
Browse files Browse the repository at this point in the history
when a tag is pushed.

🤞
  • Loading branch information
funkyfuture committed Aug 8, 2023
1 parent a20cd21 commit a7919bc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---

name: Publish on PyPI

on:
push:
tags:
- "*"

jobs:
tests:
uses: ./.github/workflows/tests.yml

publish:
needs: tests
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- run: pip install build
- run: python -m build
- uses: pypa/gh-action-pypi-publish@release/v1

...
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
---

name: Test changes
name: Run tests

on:
pull_request:
push:
branches:
- 1.3.x
workflow_call:
workflow_dispatch:
inputs:
ref:
Expand Down

0 comments on commit a7919bc

Please sign in to comment.