build: misc framework updates

This commit is contained in:
Casper da Costa-Luis 2021-07-26 21:26:50 +01:00
parent d986637bce
commit 269fa7d429
No known key found for this signature in database
GPG Key ID: F5126E5FBD2512AD
3 changed files with 3 additions and 3 deletions

View File

@ -164,13 +164,14 @@ jobs:
echo ::set-output name=docker_tags::devel echo ::set-output name=docker_tags::devel
echo ::set-output name=snap_channel::edge echo ::set-output name=snap_channel::edge
fi fi
echo ::set-output name=tag::${GITHUB_REF#refs/tags/}
git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md git log --pretty='format:%d%n- %s%n%b---' $(git tag --sort=v:refname | tail -n2 | head -n1)..HEAD > _CHANGES.md
- if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') - if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with: with:
name: tqdm ${{ github.ref }} stable name: tqdm ${{ steps.collect_assets.outputs.tag }} stable
body_path: _CHANGES.md body_path: _CHANGES.md
draft: true draft: true
files: | files: |

1
.gitignore vendored
View File

@ -5,7 +5,6 @@ __pycache__/
# Packages # Packages
/tqdm/_dist_ver.py /tqdm/_dist_ver.py
/.eggs/
/*.egg*/ /*.egg*/
/build/ /build/
/dist/ /dist/

View File

@ -49,7 +49,7 @@ repos:
- flake8-debugger - flake8-debugger
- flake8-string-format - flake8-string-format
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.8.0 rev: 5.9.2
hooks: hooks:
- id: isort - id: isort
- repo: https://github.com/kynan/nbstripout - repo: https://github.com/kynan/nbstripout