Workflows!

This commit is contained in:
Kyler Eastridge
2025-06-19 07:30:24 -04:00
parent e5a5e0aff7
commit b953aff983
2 changed files with 54 additions and 1 deletions

50
.github/workflows/pypi-publish.yml vendored Normal file
View File

@@ -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 }}

View File

@@ -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