-
-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (45 loc) · 1.25 KB
/
release-domino-py.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 wheel
pip install twine
- name: Build and publish to PyPI
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}