Skip to content

Commit

Permalink
Add prod pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximilian Weichart committed Sep 11, 2024
1 parent 4214d9d commit ca415d1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,25 @@ name: Build and publish python package

on:
release:
types: [ published ]
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi

- name: Build and publish to TestPyPI
if: github.event.release.prerelease
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
pypi_token: ${{ secrets.TEST_PYPI_TOKEN }}
repository_name: "tetris-gymnasium"
repository_url: "https://test.pypi.org/legacy/"

- name: Build and publish to PyPI
if: "!github.event.release.prerelease"
uses: JRubics/[email protected]
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
repository_name: "tetris-gymnasium"

0 comments on commit ca415d1

Please sign in to comment.