Skip to content

Merge pull request #297 from Tauffer-Consulting/dev #47

Merge pull request #297 from Tauffer-Consulting/dev

Merge pull request #297 from Tauffer-Consulting/dev #47

name: Build and publish domino-py package
on:
push:
branches:
- main
paths:
- src/domino/**
jobs:
github-release:
name: Release Domino in github
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install .[cli]
- name: Create Release
env:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python -m domino.actions.github_actions create_github_release
pypi-release:
name: Release Domino in pypi
runs-on: ubuntu-latest
needs: github-release
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install twine
- name: Build and publish to PyPI
run: |
python -m build
twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}