Skip to content

generate C++ as release artefact #180

@KrisThielemans

Description

@KrisThielemans

In addition to upload to conda-forge #69, we could just upload the generated C++ files into a release. This can be automated. I found a few Actions including https://github.com/softprops/action-gh-release, https://github.com/marketplace/actions/github-upload-release-artifacts and https://cicube.io/workflow-hub/ncipollo-release-action/. The first seems the most flexible. It could be something like this

on: push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v5
      <yardl stuff and tests>
      - name: zip C++
        run: |
            cd cpp/
            zip -r ../petsird_cpp *
      - name: Release
        uses: softprops/action-gh-release@v2
        if: github.ref_type == 'tag'
        with:
          generate_release_notes: true
          files: petsird_cpp.zip

Although there's surely more to it, such as permissions.

@casperdcl @naegelejd @johnstairs could you advise?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions