mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-10 05:08:55 -05:00
* Attempt 1, I suppose. * Add the remaining 2 out of 3 jobs * Spacing matters T_T * So does formatting... * More formatting fixing. * First attempt at postgres services. * Postgres attempt 2 * Update tests.yml Flatten a python version I suppose. * Update tests.yml * Update tests.yml * Update tests.yml * Update tests.yml * I wonder if this works lmao * this is fun™ * let's go back * add fail-fast * Added publishing workflows Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
27 lines
587 B
YAML
27 lines
587 B
YAML
name: Publish to PyPI
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: '3.8'
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install setuptools wheel twine
|
|
- name: Build and publish
|
|
env:
|
|
TWINE_USERNAME: __token__
|
|
TWINE_PASSWORD: ${{ secrets.pypi_token }}
|
|
run: |
|
|
python setup.py sdist bdist_wheel
|
|
twine upload dist/*
|