Skip to content

[Bug]: Fix Regular Expression within release workflow #289

@harryswift01

Description

@harryswift01

Bug Report

Description

The GitHub Actions release workflow is not successfully publishing the CodeEntropy Conda package to Anaconda.org.

Expected Behavior

When the release workflow is triggered, it should:

  1. Build the Conda package from conda-recipe/meta.yaml
  2. Upload the built artifact to the CCPBioSim Anaconda.org organisation channel

Actual Behavior

The workflow fails during the Conda publish stage and does not upload the package to Anaconda.org.

Steps to Reproduce

  1. Go to GitHub Actions → Release CodeEntropy
  2. Run workflow (workflow_dispatch) with a valid version number (e.g. 1.2.3)
  3. Observe failure in the conda job (publish step)

Relevant Logs / Error Message

  • Example failure seen:
    • sed: -e expression #1, char 57: Invalid preceding regular expression
    • Exit code: 1

Environment

  • GitHub Actions runner: ubuntu-24.04
  • Conda setup: conda-incubator/setup-miniconda@v3 (Miniforge)
  • Package recipe location: conda-recipe/meta.yaml
  • Upload method: anaconda-client using ANACONDA_TOKEN

Additional Context

The Conda recipe uses Jinja templating ({% ... %}), and the workflow updates the recipe version using sed before building/uploading.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions