forked from exasol/bucketfs-utils-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update the ci-cd workflow * Add documentation for release workflow * Remove publish environment * Refactor documentation builds & updates * Update changelog * Bump version number Co-authored-by: Muhammet Orazov <[email protected]>
- Loading branch information
Showing
10 changed files
with
106 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ jobs: | |
|
||
documenation-job: | ||
runs-on: ubuntu-latest | ||
environment: publish | ||
|
||
steps: | ||
- name: SCM Checkout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Update Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
|
||
jobs: | ||
|
||
ci-job: | ||
name: Checks | ||
uses: ./.github/workflows/checks.yml | ||
|
||
publish-docs: | ||
name: Publish Documentation | ||
uses: ./.github/workflows/docs.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# BucketFs Python 0.5.0, released YYYY-MM-DD | ||
|
||
## Summary | ||
TDB | ||
|
||
## Features / Enhancements | ||
|
||
## Bug Fixes | ||
|
||
## Refactoring | ||
- Rework | ||
|
||
## Documentation | ||
- Add information on how to trigger a release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
Creating a Release | ||
******************* | ||
|
||
Prerequisites | ||
------------- | ||
|
||
* Change log needs to be up to date | ||
* Latest change log version needs to match project and package version | ||
* Release tag needs to match package, changelog and project version | ||
|
||
For Example: | ||
* Tag: 0.4.0 | ||
* Changelog: changes_0.4.0.md | ||
* \`poetry version -s\`: 0.4.0 | ||
|
||
Triggering the Release | ||
---------------------- | ||
In order to trigger a release a new tag must be pushed to Github. | ||
For further details see: `.github/workflows/ci-cd.yml`. | ||
|
||
|
||
#. Create a local tag with the appropriate version number | ||
|
||
.. code-block:: shell | ||
git tag x.y.z | ||
#. Push the tag to Github | ||
|
||
.. code-block:: shell | ||
git tag push origin x.y.z | ||
What to do if the release failed? | ||
--------------------------------- | ||
|
||
The release failed during pre-release checks | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
#. Delete the local tag | ||
|
||
.. code-block:: shell | ||
git tag -d x.y.z | ||
#. Delete the remote tag | ||
|
||
.. code-block:: shell | ||
git push --delete origin x.y.z | ||
#. Fix the issue(s) which lead to the failing checks | ||
#. Start the release process from the beginning | ||
|
||
|
||
One of the release steps failed (Partial Release) | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
#. Check the Github action/workflow to see which steps failed | ||
#. Finish or redo the failed release steps manually | ||
|
||
.. note:: Example | ||
|
||
**Scenario**: Publishing of the release on Github was successfull but during the PyPi release, the upload step got interrupted. | ||
|
||
**Solution**: Manually push the package to PyPi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters