Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Apr 19, 2020
1 parent 05c4057 commit 6df902e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
max-parallel: 6
matrix:
package: ["emmet-core"]

steps:
- uses: actions/checkout@v1

- uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools setuptools_scm wheel
- name: Build packages
run: python setup.py sdist bdist_wheel
working-directory: ./${{ matrix.package }}/

- name: Publish package
uses: pypa/gh-action-pypi-publish@master
working-directory:
with:
user: __token__
password: ${{ secrets.PYPY_API_TOKEN }}
packages_dir: ./${{ matrix.package }}/dist/
2 changes: 1 addition & 1 deletion emmet-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"pydantic",
"pybtex",
"typing-extensions",
"pymongo",
"bson",
],
license="modified BSD",
zip_safe=False,
Expand Down

0 comments on commit 6df902e

Please sign in to comment.