Workflows!
This commit is contained in:
50
.github/workflows/pypi-publish.yml
vendored
Normal file
50
.github/workflows/pypi-publish.yml
vendored
Normal 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 }}
|
||||||
|
|
||||||
@@ -1,3 +1,6 @@
|
|||||||
|
[](https://pypi.python.org/pypi/pymetaverse/)
|
||||||
|
[](https://pypi.python.org/pypi/pymetaverse/)
|
||||||
|
|
||||||
# Second Life viewer in python
|
# Second Life viewer in python
|
||||||
```py
|
```py
|
||||||
import asyncio
|
import asyncio
|
||||||
@@ -28,7 +31,7 @@ def ChatFromSimulator(simulator, message):
|
|||||||
))
|
))
|
||||||
|
|
||||||
async def main():
|
async def main():
|
||||||
await bot.login(("Magellan", "Linden"), "CrystalPrims")
|
await bot.login(("Example", "Resident"), "password")
|
||||||
await bot.run()
|
await bot.run()
|
||||||
|
|
||||||
# Run everything
|
# Run everything
|
||||||
|
|||||||
Reference in New Issue
Block a user