Skip to content

Commit 33e92f1

Browse files
authored
Create python-publish.yml
1 parent 4481dd0 commit 33e92f1

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3+
4+
name: Publish Python Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: make init-dev
21+
- name: Run tests
22+
env:
23+
FORGE_CLIENT_ID: ${{ secrets.FORGE_CLIENT_ID }}
24+
FORGE_CLIENT_SECRET: ${{ secrets.FORGE_CLIENT_SECRET }}
25+
FORGE_BUCKET: ${{ secrets.FORGE_BUCKET }}
26+
run: make test
27+
- name: Generate docs
28+
run: make docs
29+
- name: Build and publish
30+
env:
31+
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
32+
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
33+
run: make publish

0 commit comments

Comments
 (0)