Skip to content

Commit c9f9c89

Browse files
authored
Merge branch 'master' into cov-params
2 parents 49dfc84 + e0e195e commit c9f9c89

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/zenodo.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ jobs:
66
deploy:
77
if: ${{ success() && contains(github.ref, 'refs/tags') }}
88
runs-on: ubuntu-latest
9+
env:
10+
REPORTS_DIR: ${{ github.workspace }}/reports
11+
CHANGES_HTML: ${{ github.workspace }}/reports/CHANGES_${{ github.ref_name }}.html
912

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

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

0 commit comments

Comments
 (0)