diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..a1bf9ab --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,25 @@ +name: Publish Release + +on: + release: + types: [released] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Python 3.12 + uses: actions/setup-python@v5 + with: + python-version: 3.12 + + - name: Install dependencies + run: python -m pip install --upgrade flit + + - name: Publish release to pypi + env: + FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} + run: | + flit publish --pypirc .pypirc diff --git a/.pypirc b/.pypirc new file mode 100644 index 0000000..1d44142 --- /dev/null +++ b/.pypirc @@ -0,0 +1,2 @@ +[pypi] +username = __token__ \ No newline at end of file diff --git a/janim/__init__.py b/janim/__init__.py index 8c16cbd..4cbc47e 100644 --- a/janim/__init__.py +++ b/janim/__init__.py @@ -1,3 +1,3 @@ '''a library for simple animation effects''' -__version__ = '1.0.4' +__version__ = '1.1.0'