diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index fcbc7403..636e7b02 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -13,7 +13,19 @@ jobs: runs-on: ubuntu-latest steps: + + - name: Install git + run: | + sudo apt-get install -y git + git --version + - uses: actions/checkout@v2.2.0 + with: + fetch-depth: 0 + + - name: List git tags + run: | + git --no-pager tag - name: Dump GitHub context env: @@ -52,6 +64,37 @@ jobs: echo ::set-output name=prerelease::true fi + - name: Get previous release tag + id: get_previous_release + run: | + if [ "${{ steps.check-tag.outputs.prerelease }}" == "true" ]; then + export LATEST_RELEASE_TAG=$(git --no-pager tag | grep -P 'v[\d]+.[\d]+.[\d]+$' | tail -n1) + else + export LATEST_RELEASE_TAG=$(git --no-pager tag | grep -P 'v[\d]+.[\d]+.[\d]+$' | tail -n2 | head -n1) + fi + echo "::set-output name=tag_name::$(echo "$LATEST_RELEASE_TAG")" + echo "previous release ${LATEST_RELEASE_TAG}" + + - name: Get release changelog + id: get_release_changelog + if: steps.check-tag.outputs.prerelease == 'false' + run: | + export CHANGELOG="$(git --no-pager log ${{ steps.get_previous_release.outputs.tag_name }}..HEAD --first-parent --merges --date=short --pretty=format:' - %h %cd %s')" + CHANGELOG="${CHANGELOG//'%'/'%25'}" + CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" + CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" + echo "::set-output name=changelog::$(echo "$CHANGELOG")" + + - name: Get pre-release changelog + id: get_prerelease_changelog + if: steps.check-tag.outputs.prerelease == 'true' + run: | + export CHANGELOG="$(git --no-pager log ${{ steps.get_previous_release.outputs.tag_name }}..HEAD --date=short --pretty=format:' - %h %cd %s')" + CHANGELOG="${CHANGELOG//'%'/'%25'}" + CHANGELOG="${CHANGELOG//$'\n'/'%0A'}" + CHANGELOG="${CHANGELOG//$'\r'/'%0D'}" + echo "::set-output name=changelog::$(echo "$CHANGELOG")" + - name: Create release id: create_release if: steps.check-tag.outputs.prerelease == 'false' @@ -61,7 +104,12 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} - body: Release ${{ github.ref }} + body: | + Release ${{ github.ref }} + + Changes since ${{ steps.get_previous_release.outputs.tag_name }}: + + ${{ steps.get_release_changelog.outputs.changelog }} draft: false prerelease: false @@ -74,7 +122,12 @@ jobs: with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} - body: Release ${{ github.ref }} + body: | + Release ${{ github.ref }} + + Changes since ${{ steps.get_previous_release.outputs.tag_name }}: + + ${{ steps.get_prerelease_changelog.outputs.changelog }} draft: false prerelease: true diff --git a/leanux.css b/leanux.css index 733e61a3..e69de29b 100644 --- a/leanux.css +++ b/leanux.css @@ -1,4 +0,0 @@ -h1 { - font-size: 14px; - color: black; -} diff --git a/leanux.doxygen b/leanux.doxygen index 759ad4a9..6b58cd1f 100644 --- a/leanux.doxygen +++ b/leanux.doxygen @@ -1194,7 +1194,7 @@ HTML_EXTRA_FILES = # Minimum value: 0, maximum value: 359, default value: 220. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_COLORSTYLE_HUE = 220 +HTML_COLORSTYLE_HUE = 260 # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors # in the HTML output. For a value of 0 the output will use grayscales only. A @@ -1202,7 +1202,7 @@ HTML_COLORSTYLE_HUE = 220 # Minimum value: 0, maximum value: 255, default value: 100. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_COLORSTYLE_SAT = 100 +HTML_COLORSTYLE_SAT = 80 # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the # luminance component of the colors in the HTML output. Values below 100 @@ -1213,7 +1213,7 @@ HTML_COLORSTYLE_SAT = 100 # Minimum value: 40, maximum value: 240, default value: 80. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_COLORSTYLE_GAMMA = 80 +HTML_COLORSTYLE_GAMMA = 100 # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML # page will contain the date and time when the page was generated. Setting this