Files
Sunshine/.github/workflows/ci-cloudsmith.yml
T
renovate[bot] 21e94bc961 chore(deps): update lizardbyte/actions action to v2026.905.43751 (#5614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-09-05 12:39:37 -04:00

47 lines
1.2 KiB
YAML

---
name: CI-Cloudsmith
permissions: {}
on:
workflow_call:
inputs:
release_tag:
description: GitHub release tag containing the DEB assets.
required: true
type: string
repository:
description: Cloudsmith repository slug.
required: true
type: string
secrets:
CLOUDSMITH_API_KEY:
required: true
jobs:
cloudsmith:
name: Cloudsmith
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Download release packages
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ inputs.release_tag }}
run: |
mkdir -p artifacts/packages
gh release download "${RELEASE_TAG}" \
--dir artifacts/packages \
--pattern '*.deb' \
--pattern '*.rpm'
- name: Upload packages to Cloudsmith
uses: LizardByte/actions/actions/cloudsmith_upload@188c8ccad593e0f68bcf6aacb6bf84f10359d26f # v2026.905.43751
with:
api_key: ${{ secrets.CLOUDSMITH_API_KEY }}
owner: lizardbyte
package_path: artifacts/packages
republish: true
repository: ${{ inputs.repository }}