Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,24 @@ runs:
files: ${{ env.ASSETS }}/*
target_commitish: ${{ github.sha }}

- name: "Upload the release"
uses: actions/upload-artifact@v5
- name: "Copy body-text"
if: ${{ inputs.dry-run == 'true' }}
shell: bash
run: echo "${{ inputs.body-text }}" > $RUNNER_TEMP/Release_text_for_${PKGNAME}_${VERSION}.md

- name: "Upload the release assets"
uses: actions/upload-artifact@v7
if: ${{ inputs.dry-run == 'true' }}
with:
name: "Release_for_${{ env.PKGNAME }}_${{ env.VERSION }}"
name: "Release_assets_for_${{ env.PKGNAME }}_${{ env.VERSION }}.zip"
archive: true
path: ${{ env.ASSETS }}/*
if-no-files-found: error
overwrite: true # necessary for release-pkg test suite

- name: "Upload the release text"
uses: actions/upload-artifact@v7
if: ${{ inputs.dry-run == 'true' }}
with:
archive: false
path: ${{ runner.temp }}/Release_text_for_*.md
if-no-files-found: error