Skip to content

Commit

Permalink
Add pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 16, 2023
1 parent 1637780 commit d2cae16
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/checks.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
name: checks
on: [push, pull_request, workflow_dispatch]
name: Check and Build
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions: read-all
jobs:
format:
Expand Down Expand Up @@ -103,3 +108,20 @@ jobs:
with:
name: toltecmk
path: toltecmk
publish:
name: Publish to PyPi
runs-on: ubuntu-20
needs: [build]
if: github.repository == 'toltec-dev/build' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/toltecmk
steps:
- name: Download pip packages
uses: action/download-artifact@v4
with:
name: pip
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "toltecmk"
version = "0.2.1"
version = "0.3.0"
authors = [
{ name="Mattéo Delabre", email="[email protected]" },
{ name="Eeems", email="[email protected]" },
Expand Down

0 comments on commit d2cae16

Please sign in to comment.