Skip to content

Commit

Permalink
header auto replace
Browse files Browse the repository at this point in the history
  • Loading branch information
YanhuiJessica committed Sep 19, 2023
1 parent 849e2fd commit 0a67121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
python-version: "3.x"
- name: Install build
run: python3 -m pip install -U build
- name: Replace Raw
run: python3 -c "lines = open('README.rst', 'r').readlines(); header = open('PYPIHEADER.rst', 'r').readlines(); open('README.rst', 'w').writelines(header + ['\n'] + lines[14:])"
- name: Build
run: python3 -m build --outdir dist/
- name: Publish
Expand Down
3 changes: 3 additions & 0 deletions PYPIHEADER.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.. image:: https://raw.githubusercontent.com/YanhuiJessica/cheb3/main/docs/_static/img/cheb3.png
:width: 300
:align: center

0 comments on commit 0a67121

Please sign in to comment.