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

Commit

Permalink
Add gh-pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Sep 21, 2022
1 parent 60a9d13 commit 3c800a3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ jobs:
path: wheelhouse

- uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
# additionally create a release for every commit to master
if: github.event_name == 'release' || github.event_name == 'push'
with:
files: wheelhouse/*.whl

Expand Down Expand Up @@ -169,7 +170,8 @@ jobs:
path: wheelhouse

- uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
# additionally create a release for every commit to master
if: github.event_name == 'release' || github.event_name == 'push'
with:
files: wheelhouse/*.whl

Expand All @@ -181,6 +183,19 @@ jobs:
mv dist/psutil*.tar.gz wheelhouse/
python scripts/internal/print_hashes.py wheelhouse/
gh-pages:
needs: [cp36, linux-macos-cp27-cp35]
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v4
- name: Write index.html
run: curl -sSL https://gist.githubusercontent.com/ddelange/e4fb438f2f724413f45c4bece46aacfa/raw/fefe6d30d48418da64ab3233c33e146c02de2a96/release_assets_pip_find_links.py | python - > ./public/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

freebsd:
runs-on: macos-12
steps:
Expand Down

0 comments on commit 3c800a3

Please sign in to comment.