Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik authored Sep 7, 2024
1 parent ff8eddd commit c99a8e4
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ jobs:
- name: Store wheels as artifacts
uses: actions/upload-artifact@v4
with:
name: wheels
name: wheel-${{ matrix.config.os-name }}-${{ matrix.config.python-arch }}-${{ matrix.config.python-version }}
path: dist

docs:
Expand All @@ -221,7 +221,8 @@ jobs:
- name: Download wheels from artifact storage
uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheel-*
merge-multiple: true
path: dist

- name: Install lensfunpy from wheel
Expand All @@ -233,9 +234,8 @@ jobs:
run: sphinx-build -b html docs dist-docs

- name: Store docs HTML as artifact
uses: actions/upload-artifact@v4
uses: actions/upload-pages-artifact@v3
with:
name: docs
path: dist-docs

publish-wheels:
Expand All @@ -249,7 +249,8 @@ jobs:
- name: Download wheels from artifact storage
uses: actions/download-artifact@v4
with:
name: wheels
pattern: wheel-*
merge-multiple: true
path: dist

- name: Setup Python
Expand All @@ -266,18 +267,14 @@ jobs:
needs: [publish-wheels]

permissions:
contents: write
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

steps:
- name: Download docs HTML from artifact storage
uses: actions/download-artifact@v4
with:
name: docs
path: dist-docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

- name: Upload docs to GitHub Pages
uses: peaceiris/actions-gh-pages@47a6d63ea8b47b19328e258563aa1fbe224c0a23
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./dist-docs
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit c99a8e4

Please sign in to comment.