diff --git a/.github/workflows/gh-pages.yml b/.github/deactivated/gh-pages.yml similarity index 100% rename from .github/workflows/gh-pages.yml rename to .github/deactivated/gh-pages.yml diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 3f6d77c9..242b6d28 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -10,7 +10,9 @@ on: - .github/**.yml - .gitignore - .pre-commit-config.yaml + - .readthedocs.yml - .yamllint.yaml + - .zenodo.json - AUTHORS.rst - CONTRIBUTING.rst - HISTORY.rst diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index f54bc32f..9432dce1 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -8,6 +8,7 @@ on: jobs: build-n-publish-pypi: name: Build and publish Python 🐍 distributions 📦 to PyPI + environment: production runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/tag-testpypi.yml b/.github/workflows/tag-testpypi.yml index eb9ac3e3..30b9f406 100644 --- a/.github/workflows/tag-testpypi.yml +++ b/.github/workflows/tag-testpypi.yml @@ -3,11 +3,12 @@ name: Publish Python 🐍 distributions 📦 to TestPyPI on: push: tags: - - '*' + - 'v*.*.*' jobs: build-n-publish-testpypi: name: Build and publish Python 🐍 distributions 📦 to TestPyPI + environment: staging runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/HISTORY.rst b/HISTORY.rst index 0857372b..7aa6f30d 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -9,7 +9,7 @@ Contributors to this version: Trevor James Smith (:user:`Zeitsperre`), Gabriel R Announcements ^^^^^^^^^^^^^ * Support for Python3.8 and lower has been dropped. (:pull:`11`). -* `xHydro` now hosts its documentation on `Read the Docs `_. (:pull:`26`). +* `xHydro` now hosts its documentation on `Read the Docs `_. (:issue:`22`, :pull:`26`). New features and enhancements ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -34,6 +34,7 @@ Internal changes * Some sphinx extensions have been added/enabled (sphinx-codeautolink, sphinx-copybutton). * Automated testing with tox now updated to use v4.0+ conventions. * Removed all references to travis.ci. +* Deployments to TestPyPI and PyPI are now run using GitHub Workflow Environments as a safeguarding mechanism. (:pull:`28`). 0.1.2 (2023-05-10) ------------------