Skip to content

Commit

Permalink
Enable auto pypi publish on release (#316)
Browse files Browse the repository at this point in the history
* Enable auto pypi publish on release

* Update README.md
  • Loading branch information
munrojm committed Jul 4, 2021
1 parent 1a895a6 commit da4ae60
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
@@ -0,0 +1,34 @@
name: release

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
strategy:
max-parallel: 6

steps:
- uses: actions/checkout@v2.3.4

- uses: actions/setup-python@v2.2.2
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: ./

- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPY_API_TOKEN }}
packages_dir: ./dist/
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -2,4 +2,4 @@

[![testing](https://github.com/materialsproject/api/workflows/testing/badge.svg)](https://github.com/materialsproject/api/actions?query=workflow%3Atesting) [![codecov](https://codecov.io/gh/materialsproject/api/branch/main/graph/badge.svg)](https://codecov.io/gh/materialsproject/api) [![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/materialsproject/api.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/materialsproject/api/context:python)

This repository is the development environment for the next Materials Project API. A core server implementation and data models will both reside here.
This repository is the development environment for the next Materials Project API. A core server and client implementation will reside here.

0 comments on commit da4ae60

Please sign in to comment.