Skip to content

Commit

Permalink
Merge pull request #184 from ACCESS-NRI/davide/fix_CD
Browse files Browse the repository at this point in the history
Fix CD release
  • Loading branch information
atteggiani authored Jan 22, 2025
2 parents 08f034e + c65d8e1 commit b44e549
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,19 @@ jobs:
user: ${{ secrets.ANACONDA_USER_NAME }}
token: ${{ secrets.ANACONDA_TOKEN }}
label: main
platform_all: true


- name: Re-format output paths
id: reformat-paths
# Needed to have the correct newline-separated files format for the following release step
run: |
paths=$(tr ' ' '\n' <<< "${{steps.build-and-upload.outputs.paths}}")
echo "newline-separated-paths=$paths" >> $GITHUB_OUTPUT
- name: Create Release
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 #v2.0.8
with:
tag_name: ${{ github.ref_name }}
name: ${{needs.get-package-name.outputs.package-name}} ${{ github.ref_name }}
generate_release_notes: true
fail_on_unmatched_files: true
files: ${{steps.build-and-upload.outputs.paths}}
files: ${{steps.reformat-paths.outputs.newline-separated-paths}}

0 comments on commit b44e549

Please sign in to comment.