Skip to content

Commit 45b62c4

Browse files
committed
Publish to private pypi
1 parent 8302ce5 commit 45b62c4

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

Diff for: .github/workflows/black.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Lint
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: psf/black@stable

Diff for: .github/workflows/publish.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build and upload Python Package to pypi.autoactuary.com
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: '3.x'
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install setuptools wheel twine
22+
- name: Build and publish
23+
env:
24+
TWINE_USERNAME: 'aa'
25+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
26+
TWINE_REPOSITORY_URL: 'https://pypi.autoactuary.com'
27+
run: |
28+
python setup.py sdist bdist_wheel
29+
twine upload dist/*
30+
- name: Trigger docs update
31+
run: |
32+
curl -X POST -d {} "https://webhooks.amplify.eu-west-2.amazonaws.com/prod/webhooks?id=6ee6a4d0-2851-453f-9ae1-6599a7655b42&token=PvkVMadqDAWjSdtjruZQWkH6mzaPhDTLXLVoYQBH4I&operation=startbuild" -H "Content-Type:application/json"

0 commit comments

Comments
 (0)