-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (37 loc) · 1.01 KB
/
pypipublish.yml
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
name: pypipublish
on:
push:
paths:
- 'pystol-operator/setup.py'
- '.github/workflows/pypipublish.yml'
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt update -y
sudo apt install ansible jq -y
python -m pip install --upgrade pip
pip install tox shyaml
pip install twine
- name: Create pypi package and publish
run: |
./tools/pypi_publish.sh -k ${{ secrets.GITHUB_PYPI_PYSTOL_TOKEN }}
- name: Install latest Pystol version build locally if we published a new version
run: |
cd ./pystol-operator
if [ -d "./dist" ]
then
python -m pip install --force dist/*
pystol -v
fi