Skip to content

Commit

Permalink
Create python-publish-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zemogle authored Jan 10, 2024
1 parent 5243aab commit 8c711d3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/python-publish-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish 🚀 fits_align distributions 📦 to PyPI

on: push

jobs:
build-n-publish:
name: Build and publish astrosource package 📦 to PyPI
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@main
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install pep517
run: >-
python -m
pip install
pep517
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
pep517.build
--source
--binary
--out-dir dist/
.
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 8c711d3

Please sign in to comment.