Skip to content

Commit 4eafb24

Browse files
authored
Add publish job to Actions (#191)
1 parent 1aacac7 commit 4eafb24

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,26 @@ jobs:
8787
8888
- name: Ensure formatter made no changes
8989
run: git --no-pager diff --exit-code HEAD
90+
91+
publish:
92+
name: Publish
93+
runs-on: ubuntu-latest
94+
if: ${{ github.repository_owner == 'wpilibsuite' && github.ref == 'refs/heads/master' }}
95+
steps:
96+
- uses: actions/checkout@v2
97+
with:
98+
fetch-depth: 0
99+
100+
- uses: actions/setup-python@v2
101+
with:
102+
python-version: 3.7
103+
104+
- name: Build package
105+
run: python setup.py bdist_wheel
106+
working-directory: wpiformat
107+
108+
- name: Upload package to PyPi
109+
uses: pypa/[email protected]
110+
with:
111+
packages_dir: wpiformat/dist
112+
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)