Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
Create a release on each master commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Sep 22, 2022
1 parent f727092 commit f5d34fc
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,20 @@ on:
release:
types: [released, prereleased]
workflow_dispatch: # allows running workflow manually from the Actions tab
permissions:
contents: write
name: build
jobs:
tag:
# additionally create a release for every commit to master
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: ncipollo/release-action@v1
with:
commit: ${{ github.sha }}
tag: ${{ github.run_id }}
generateReleaseNotes: true
# Linux + macOS + Windows CPython 3.6+
cp36:
name: cp36+, ${{ matrix.os }}, ${{ matrix.archs }}
Expand Down Expand Up @@ -75,6 +87,7 @@ jobs:
if: github.event_name == 'release' || github.event_name == 'push'
with:
files: wheelhouse/*.whl
tag_name: ${{ github.event_name == 'release' && github.ref || github.run_id }}

- name: Print hashes
if: matrix.os == 'ubuntu-latest'
Expand Down Expand Up @@ -174,6 +187,7 @@ jobs:
if: github.event_name == 'release' || github.event_name == 'push'
with:
files: wheelhouse/*.whl
tag_name: ${{ github.event_name == 'release' && github.ref || github.run_id }}

- name: Print hashes
if: matrix.os == 'ubuntu-latest'
Expand All @@ -193,6 +207,7 @@ jobs:
- name: Write index.html
run: |
mkdir ./public
pip install dominate requests
curl -sSL https://gist.github.com/ddelange/e4fb438f2f724413f45c4bece46aacfa/raw/release_assets_pip_find_links.py | python - > ./public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
16 changes: 13 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,23 @@
Fork
====

This fork builds `more wheels <https://github.com/giampaolo/psutil/pull/2103>`__. It receives `automatic <https://github.com/wei/pull>`__ merge commits from upstream.
This fork builds `more wheels <https://github.com/giampaolo/psutil/pull/2103>`__:

- It receives `automatic <https://github.com/wei/pull>`__ merge commits from upstream.
- It creates a release for each commit on `master`, and uploads wheels as release assets.
- After building wheels, there is a deploy to Github Pages containing all wheel links.
- With each commit that changes `__version__`, new wheels will show up.
- Links on Github Pages will point to the latest commit that still contains a specific `__version__`.

Fork Usage
----------

.. code-block:: bash
export PIP_FIND_LINKS=https://ddelange.github.io/psutil
export PIP_FIND_LINKS=https://ddelange.github.io/psutil/
pip install ...
# OR
pip install --find-links=https://ddelange.github.io/psutil
pip install ... --find-links=https://ddelange.github.io/psutil/
-----

Expand Down

0 comments on commit f5d34fc

Please sign in to comment.