Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,26 @@ jobs:
with:
python-version: '3.9'

- name: Check version correctness
run: |
python3 .github/check_version.py --branch ${{ github.event.release.target_commitish }} --tag $GITHUB_REF_NAME \
--new_version $(< VERSION) --old_version $(git cat-file -p $(git rev-parse "$GITHUB_SHA"^1):VERSION) \
--pre_release ${{ github.event.release.prerelease }}
# - name: Check version correctness
# run: |
# python3 .github/check_version.py --branch ${{ github.event.release.target_commitish }} --tag $GITHUB_REF_NAME \
# --new_version $(< VERSION) --old_version $(git cat-file -p $(git rev-parse "$GITHUB_SHA"^1):VERSION) \
# --pre_release ${{ github.event.release.prerelease }}

- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install build twine

- name: Build and publish to PyPI # TODO change to pypi instead of testpypi
- name: Build and publish to PyPI
if: ${{ success() }} # publish only when version passed the checks
env:
TWINE_USERNAME: ${{ secrets.TEST_PYPI_USERNAME }} # TODO delete TEST_ in the name of the variable
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_PASSWORD }} # TODO delete TEST_ in the name of the variable
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python3 -m build -w
twine check dist/*
twine upload --repository testpypi dist/*
twine upload --repository pypi dist/*

- name: Push to dockerhub
if: ${{ success() }}
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023.05.26
0.9
6 changes: 2 additions & 4 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
Changelog
=========

This is an example

v0.9 (2023-09-29)
v0.9 (2023-06-26)
-------------------
Release note: `v0.9 <https://github.com/ispras/dedoc/releases/tag/v0.9>`_

* First change description
* Second change description
* Publication of the first version of dedoc library