Skip to content

Commit

Permalink
Switch to pypi build and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepqr committed Sep 27, 2021
1 parent 5c1416e commit 3b2c2ec
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 37 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and publish to PyPI

on:
push:
branches:
- main
release:
types:
- published

jobs:
publish:
if: github.repository == 'mikepqr/real-estate-scrape-src'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build binary wheel and source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish to PyPI
if: github.event.action == 'published'
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
37 changes: 0 additions & 37 deletions .github/workflows/real-estate-scrape.yml

This file was deleted.

0 comments on commit 3b2c2ec

Please sign in to comment.