mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 4 to 5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/download-artifact/releases">actions/download-artifact's releases</a>.</em></p> <blockquote> <h2>v5.0.0</h2> <h2>What's Changed</h2> <ul> <li>Update README.md by <a href="https://github.com/nebuk89"><code>@nebuk89</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/407">actions/download-artifact#407</a></li> <li>BREAKING fix: inconsistent path behavior for single artifact downloads by ID by <a href="https://github.com/GrantBirki"><code>@GrantBirki</code></a> in <a href="https://redirect.github.com/actions/download-artifact/pull/416">actions/download-artifact#416</a></li> </ul> <h2>v5.0.0</h2> <h3>🚨 Breaking Change</h3> <p>This release fixes an inconsistency in path behavior for single artifact downloads by ID. <strong>If you're downloading single artifacts by ID, the output path may change.</strong></p> <h4>What Changed</h4> <p>Previously, <strong>single artifact downloads</strong> behaved differently depending on how you specified the artifact:</p> <ul> <li><strong>By name</strong>: <code>name: my-artifact</code> → extracted to <code>path/</code> (direct)</li> <li><strong>By ID</strong>: <code>artifact-ids: 12345</code> → extracted to <code>path/my-artifact/</code> (nested)</li> </ul> <p>Now both methods are consistent:</p> <ul> <li><strong>By name</strong>: <code>name: my-artifact</code> → extracted to <code>path/</code> (unchanged)</li> <li><strong>By ID</strong>: <code>artifact-ids: 12345</code> → extracted to <code>path/</code> (fixed - now direct)</li> </ul> <h4>Migration Guide</h4> <h5>✅ No Action Needed If:</h5> <ul> <li>You download artifacts by <strong>name</strong></li> <li>You download <strong>multiple</strong> artifacts by ID</li> <li>You already use <code>merge-multiple: true</code> as a workaround</li> </ul> <h5>⚠️ Action Required If:</h5> <p>You download <strong>single artifacts by ID</strong> and your workflows expect the nested directory structure.</p> <p><strong>Before v5 (nested structure):</strong></p> <pre lang="yaml"><code>- uses: actions/download-artifact@v4 with: artifact-ids: 12345 path: dist # Files were in: dist/my-artifact/ </code></pre> <blockquote> <p>Where <code>my-artifact</code> is the name of the artifact you previously uploaded</p> </blockquote> <p><strong>To maintain old behavior (if needed):</strong></p> <pre lang="yaml"><code></tr></table> </code></pre> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="634f93cb29"><code>634f93c</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/416">#416</a> from actions/single-artifact-id-download-path</li> <li><a href="b19ff43027"><code>b19ff43</code></a> refactor: resolve download path correctly in artifact download tests (mainly ...</li> <li><a href="e262cbee4a"><code>e262cbe</code></a> bundle dist</li> <li><a href="bff23f9308"><code>bff23f9</code></a> update docs</li> <li><a href="fff8c148a8"><code>fff8c14</code></a> fix download path logic when downloading a single artifact by id</li> <li><a href="448e3f862a"><code>448e3f8</code></a> Merge pull request <a href="https://redirect.github.com/actions/download-artifact/issues/407">#407</a> from actions/nebuk89-patch-1</li> <li><a href="47225c44b3"><code>47225c4</code></a> Update README.md</li> <li>See full diff in <a href="https://github.com/actions/download-artifact/compare/v4...v5">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ayaz Salikhov <mathbunnyru@users.noreply.github.com>
113 lines
3.1 KiB
YAML
113 lines
3.1 KiB
YAML
name: Make release
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
overwrite_release:
|
|
description: "Overwrite the current release and tag"
|
|
required: true
|
|
type: boolean
|
|
|
|
prerelease:
|
|
description: "Create a prerelease"
|
|
required: true
|
|
type: boolean
|
|
|
|
title:
|
|
description: "Release title"
|
|
required: true
|
|
type: string
|
|
|
|
version:
|
|
description: "Release version"
|
|
required: true
|
|
type: string
|
|
|
|
header:
|
|
description: "Release notes header"
|
|
required: true
|
|
type: string
|
|
|
|
generate_changelog:
|
|
description: "Generate changelog"
|
|
required: true
|
|
type: boolean
|
|
|
|
draft:
|
|
description: "Create a draft release"
|
|
required: true
|
|
type: boolean
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: heavy
|
|
container:
|
|
image: ghcr.io/xrplf/clio-ci:a446d85297b3006e6d2c4dc7640368f096afecf5
|
|
env:
|
|
GH_REPO: ${{ github.repository }}
|
|
GH_TOKEN: ${{ github.token }}
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Prepare runner
|
|
uses: ./.github/actions/prepare_runner
|
|
with:
|
|
disable_ccache: true
|
|
|
|
- uses: actions/download-artifact@v5
|
|
with:
|
|
path: release_artifacts
|
|
pattern: clio_server_*
|
|
|
|
- name: Create release notes
|
|
shell: bash
|
|
run: |
|
|
echo "# Release notes" > "${RUNNER_TEMP}/release_notes.md"
|
|
echo "" >> "${RUNNER_TEMP}/release_notes.md"
|
|
printf '%s\n' "${{ inputs.header }}" >> "${RUNNER_TEMP}/release_notes.md"
|
|
|
|
- name: Generate changelog
|
|
shell: bash
|
|
if: ${{ inputs.generate_changelog }}
|
|
run: |
|
|
LAST_TAG="$(gh release view --json tagName -q .tagName)"
|
|
LAST_TAG_COMMIT="$(git rev-parse $LAST_TAG)"
|
|
BASE_COMMIT="$(git merge-base HEAD $LAST_TAG_COMMIT)"
|
|
git-cliff "${BASE_COMMIT}..HEAD" --ignore-tags "nightly|-b|-rc"
|
|
cat CHANGELOG.md >> "${RUNNER_TEMP}/release_notes.md"
|
|
|
|
- name: Prepare release artifacts
|
|
shell: bash
|
|
run: .github/scripts/prepare-release-artifacts.sh release_artifacts
|
|
|
|
- name: Upload release notes
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: release_notes_${{ inputs.version }}
|
|
path: "${RUNNER_TEMP}/release_notes.md"
|
|
|
|
- name: Remove current release and tag
|
|
if: ${{ github.event_name != 'pull_request' && inputs.overwrite_release }}
|
|
shell: bash
|
|
run: |
|
|
gh release delete ${{ inputs.version }} --yes || true
|
|
git push origin :${{ inputs.version }} || true
|
|
|
|
- name: Publish release
|
|
if: ${{ github.event_name != 'pull_request' }}
|
|
shell: bash
|
|
run: |
|
|
gh release create "${{ inputs.version }}" \
|
|
${{ inputs.prerelease && '--prerelease' || '' }} \
|
|
--title "${{ inputs.title }}" \
|
|
--target "${GITHUB_SHA}" \
|
|
${{ inputs.draft && '--draft' || '' }} \
|
|
--notes-file "${RUNNER_TEMP}/release_notes.md" \
|
|
./release_artifacts/clio_server*
|