Skip to content

Commit

Permalink
ci: small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed Dec 12, 2024
1 parent 7ab55ff commit 6a3b081
Showing 1 changed file with 39 additions and 37 deletions.
76 changes: 39 additions & 37 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,44 +232,11 @@ jobs:
release_created: ${{ steps.release.outputs.release_created }}
#if a release is created then run the deploy scripts for github.io, conda, pypi and docker

documentation-test:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- run: |
cp CHANGELOG.md docs/source/CHANGELOG.md
docker build . -t=docs -f docs/Dockerfile
docker run -v $(pwd):/map2loop docs bash map2loop/docs/build_docs.sh
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/build/html

documentation-deploy:
runs-on: ubuntu-24.04
needs: [release-please, documentation-test]
if: ${{ needs.release-please.outputs.release_created }} && github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: docs
path: docs
- name: ls
run: |
ls -l docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.

conda-upload:
needs: [conda-build]
if: github.ref == 'refs/heads/master'
needs: [release-please, conda-build]

runs-on: ${{matrix.os}}
strategy:
fail-fast: false
Expand All @@ -279,7 +246,7 @@ jobs:
# - macos-latest
- windows-latest
python-version: ["3.9", "3.10", "3.11", "3.12"]
# if: ${{ needs.release-please.outputs.release_created }}
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -301,7 +268,7 @@ jobs:
needs: [pypi-test-wheels]
if: github.ref == 'refs/heads/master'
runs-on:
- ubuntu-24.04 # https://github.com/actions/runner-images/issues/10636
- ubuntu-24.04
# if: ${{ needs.release-please.outputs.release_created }}
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
Expand All @@ -315,3 +282,38 @@ jobs:
with:
skip-existing: true
verbose: true

documentation-test:
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
- run: |
cp CHANGELOG.md docs/source/CHANGELOG.md
docker build . -t=docs -f docs/Dockerfile
docker run -v $(pwd):/map2loop docs bash map2loop/docs/build_docs.sh
- name: upload artifacts
uses: actions/upload-artifact@v4
with:
name: docs
path: docs/build/html

documentation-deploy:
runs-on: ubuntu-24.04
needs: [release-please, documentation-test]
if: ${{ needs.release-please.outputs.release_created }} && github.ref == 'refs/heads/master'

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: docs
path: docs
- name: ls
run: |
ls -l docs
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.

0 comments on commit 6a3b081

Please sign in to comment.