Skip to content

Commit

Permalink
using description HTML file as-is for zenodo publish github action
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Feb 6, 2025
1 parent a18fa36 commit 1e03239
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/zenodo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ jobs:
deploy:
if: ${{ success() && contains(github.ref, 'refs/tags') }}
runs-on: ubuntu-latest
env:
REPORTS_DIR: ${{ github.workspace }}/reports
CHANGES_HTML: ${{ github.workspace }}/reports/CHANGES_${{ github.ref_name }}.html

steps:
- uses: actions/checkout@v3
Expand All @@ -29,12 +32,8 @@ jobs:
# prefer a partially generated release than none at all
- name: Generate Changelog
id: zenodo_metadata
env:
REPORTS_DIR: ${{ github.workspace }}/reports
CHANGES_HTML: ${{ github.workspace }}/reports/CHANGES_${{ github.ref_name }}.html
run: |
make generate-changes-html VERSION=${{ github.ref_name }} || true
echo "ZENODO_DESCRIPTION=$(cat ${{ env.CHANGES_HTML }} | tr -d '\n' || echo '')" >> $GITHUB_ENV
cat ${{ env.CHANGES_HTML }}
- name: Run Zenodo Publish
Expand All @@ -46,7 +45,7 @@ jobs:
zenodo_json: .zenodo.json
html_url: ${{ github.server_url }}/${{ github.repository }}/tree/${{ github.ref_name }} # GitHub tag link
archive: ${{ env.ZENODO_ARCHIVE }}
description: ${{ env.ZENODO_DESCRIPTION }}
description_file: ${{ env.CHANGES_HTML }}

# DOI for all versions. Leaving this blank (the default) will create
# a new DOI on every release. Use a DOI that represents all versions will
Expand Down

0 comments on commit 1e03239

Please sign in to comment.