Skip to content

Commit

Permalink
version bump, plus release record action
Browse files Browse the repository at this point in the history
  • Loading branch information
Paige Gulley committed Oct 10, 2024
1 parent 36e358b commit f7f100d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,29 @@ jobs:
gh release upload
'${{ github.ref_name }}' dist/**
--repo '${{ github.repository }}'
report-to-airflow:
name: Report Successfull Release to Airflow
needs:
- publish-to-pypi
runs-on: ubuntu-latest
steps:
- name: Install mc-manage package
run: |
pip install git+https://github.com/mediacloud/[email protected]
- name: Get tag name
id: extract_tag
run: echo "TAG_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV

- name: Record successful release
run: |
python -m mc-manage.airtable-release-update --name mc-providers --version ${{ env.TAG_NAME }}
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
MEAG_BASE_ID: ${{ secrets.MEAG_BASE_ID }}


publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
needs:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Make sure `pip install flit twine` so you can build and deploy to PyPI.
4. A github action will build and push the repository on committing a tagged version

### Version History
* __v2.2.0__ - Added an optional argument to providers to toggle caching behavior, added more specific error on 504
* __v2.1.1__ - Bugfix
* __v2.1.0__ - Mediacloud news client code incorperated into this package
* __v2.0.5__ - Build-system in pyproject.toml
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "flit_core.buildapi"

[project]
name = "mc-providers"
version = "2.1.1"
version = "2.2.0"
authors = [
{name = "Paige Gulley", email = "[email protected]"},
{name = "Rahul Bhargava", email = "[email protected]"},
Expand Down

0 comments on commit f7f100d

Please sign in to comment.