This repository has been archived on 2023-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
discord-notifier/.github/workflows/build.yml

33 lines
744 B
YAML
Raw Normal View History

2020-09-13 07:26:44 +02:00
name: Build & Publish
on:
release:
types:
- created
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Update Version
id: semver
2020-09-13 07:41:22 +02:00
uses: RightBrain-Networks/semver-action@master
2020-09-13 07:26:44 +02:00
with:
mode: get
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: build
run: |
python setup.py sdist bdist_wheel
- name: PyPi Publish
uses: pypa/gh-action-pypi-publish@v1.0.0a0
with:
user: __token__
2020-09-13 07:41:22 +02:00
password: ${{ secrets.PYPI_TOKEN }}