Skip to content

Commit

Permalink
Merge pull request #18 from blancadesal/add-build-n-publish-gha
Browse files Browse the repository at this point in the history
Create build-n-publish GitHub action
  • Loading branch information
blancadesal committed Dec 19, 2021
2 parents db674af + 3e10c25 commit 1f0be0d
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 1 deletion.
37 changes: 37 additions & 0 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Python 🐍 distributions 📦 to TestPyPI and PyPI.

on: push
jobs:
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to TestPyPI and PyPI.
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
20 changes: 20 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Changelog
=========

Versions follow `SemVer <https://semver.org/>`_ .
Given a version number MAJOR.MINOR.PATCH, increment the:

* MAJOR version when you make incompatible API changes,
* MINOR version when you add functionality in a backwards-compatible manner, and
* PATCH version when you make backwards-compatible bug fixes.


0.1.4 (2021-12-19)
-------------------

Changes
^^^^^^^

- Use ``requests`` instead of ``wget`` to download files.
- Use ``tqdm`` to show progress bar.

2 changes: 1 addition & 1 deletion src/mwsql/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
__summary__ = "mwsql is a set of utilities for processing" " MediaWiki SQL dump data."
__url__ = "https://github.com/blancadesal/mwsql"

__version__ = "0.1.3"
__version__ = "0.1.4"

__author__ = "Slavina Stefanova"
__email__ = "slavina.stefanova@gmail.com"
Expand Down

0 comments on commit 1f0be0d

Please sign in to comment.