From b953aff9838859e6166cfd76a905e00b6d32bec7 Mon Sep 17 00:00:00 2001 From: Kyler Eastridge Date: Thu, 19 Jun 2025 07:30:24 -0400 Subject: [PATCH] Workflows! --- .github/workflows/pypi-publish.yml | 50 ++++++++++++++++++++++++++++++ readme.md | 5 ++- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pypi-publish.yml diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml new file mode 100644 index 0000000..02fc5b9 --- /dev/null +++ b/.github/workflows/pypi-publish.yml @@ -0,0 +1,50 @@ +name: PyPI Auto Publish + +on: + workflow_dispatch: + inputs: + testOnly: + description: 'Only publish to test.pypi.org' + required: false + type: boolean + push: + paths: + - 'setup.py' + +jobs: + pypi-publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: 3.7 + + - name: Install dependencies + run: | + python -m pip install --user --upgrade setuptools wheel + + - name: Build + run: | + python setup.py sdist bdist_wheel + + - name: Upload artifacts + uses: actions/upload-artifact@v1 + with: + name: dist + path: dist/ + + # Not publishing to test just yet + #- name: Publish a Python distribution to PyPI + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # user: __token__ + # password: ${{ secrets.TEST_PYPI_API_TOKEN }} + # repository_url: https://test.pypi.org/legacy/ + + - name: Publish a Python distribution to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + \ No newline at end of file diff --git a/readme.md b/readme.md index 5e852d0..f553fad 100644 --- a/readme.md +++ b/readme.md @@ -1,3 +1,6 @@ +[![License](https://img.shields.io/pypi/l/pymetaverse.svg)](https://pypi.python.org/pypi/pymetaverse/) +[![PyPI version shields.io](https://img.shields.io/pypi/v/pymetaverse.svg)](https://pypi.python.org/pypi/pymetaverse/) + # Second Life viewer in python ```py import asyncio @@ -28,7 +31,7 @@ def ChatFromSimulator(simulator, message): )) async def main(): - await bot.login(("Magellan", "Linden"), "CrystalPrims") + await bot.login(("Example", "Resident"), "password") await bot.run() # Run everything