mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Support install from pypi (rc1)
This commit is contained in:
parent
6c52fd0da9
commit
8787f8c34f
11 changed files with 289 additions and 434 deletions
37
.github/workflows/github_action_publish_to_pypi.yml
vendored
Normal file
37
.github/workflows/github_action_publish_to_pypi.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
# This Evennia workflow will deploy the Evennia package automatically to
|
||||
# test-pypi and to pypi (if tag was given).
|
||||
#
|
||||
|
||||
name: publish-evennia
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master, develop ]
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
name: Build and publish Evennia to PyPi
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
- name: Set up Python 3.11
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.11"
|
||||
|
||||
- name: Install build
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install build --user
|
||||
|
||||
- name: Build binary wheel and source tarball
|
||||
run: |
|
||||
python -m build --sdist --wheel --outdir dist/ .
|
||||
|
||||
- name: Publish Evennia PyPi (on tag)
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
uses: pypa/gh-action-pypi-publish@release/v1
|
||||
with:
|
||||
password: ${{ secrets.PYPI_API_TOKEN }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue