From 77f8b5ed44f34125daaa69d55e9187c8f85af302 Mon Sep 17 00:00:00 2001 From: Nicolas Kruse Date: Wed, 23 Jul 2025 22:43:40 +0200 Subject: [PATCH] ci/cd updated --- .github/workflows/ci.yml | 1 + .github/workflows/docs.yml | 24 +++++++++++++++++++----- .github/workflows/publish.yml | 3 +++ .gitignore | 1 + 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d98e783..7b1d21b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,7 @@ on: jobs: build: + name: Linting, typechecking and testing code runs-on: ubuntu-latest strategy: diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e879bee..5dd1ca3 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -9,7 +9,7 @@ permissions: contents: write jobs: - build-and-deploy: + build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -30,8 +30,22 @@ jobs: rm ./source/*.rst make html touch ./build/html/.nojekyll - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - branch: gh-pages - folder: docs/build/html + path: docs/build/html + + deploy: + needs: build + runs-on: ubuntu-latest + permissions: + contents: read + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ae82350..6e58893 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,6 +9,9 @@ jobs: publish: name: Build and publish runs-on: ubuntu-latest + environment: + name: pypi + url: https://pypi.org/project/${{ github.event.repository.name }}/ steps: - uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 3ccd3c3..9b1e43d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ share/python-wheels/ .installed.cfg *.egg MANIFEST +.vscode # Jupyter Notebook .ipynb_checkpoints