Skip to content

Commit

Permalink
Switched python setup with micromamba action for semver
Browse files Browse the repository at this point in the history
  • Loading branch information
FNTwin committed Sep 24, 2024
1 parent 6256954 commit 394b918
Showing 1 changed file with 11 additions and 25 deletions.
36 changes: 11 additions & 25 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@ jobs:
- name: Checkout the code
uses: actions/checkout@v4

- name: Set up Python 3.11
uses: actions/setup-python@v5
- name: Setup mamba
uses: mamba-org/setup-micromamba@v1
with:
python-version: '3.11'
cache: pip

#- name: Install requirements
# run: |
# pip install -U pip
# pip install .[dev]

environment-name: my_env
cache-environment: true
cache-downloads: true
create-args: >-
python=3.11
pip
semver
python-build
setuptools_scm
- name: Check the version is valid semver
run: |
Expand Down Expand Up @@ -117,18 +118,3 @@ jobs:
tag_name: ${{ inputs.release-version }}
body: ${{steps.github_release.outputs.changelog}}

- name: Build book
run: |
jupyter-book build docs
- name: Setup Pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "docs/_build/html"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 394b918

Please sign in to comment.