mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
37 lines
909 B
YAML
37 lines
909 B
YAML
# This Evennia workflow will deploy the Evennia package automatically to
|
|
# pypi if vNN tag was given.
|
|
#
|
|
|
|
name: publish-evennia
|
|
|
|
on:
|
|
push:
|
|
tags: ['v*']
|
|
|
|
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 }}
|