mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-28 16:24:51 +00:00
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
---
|
|
name: CI-Cloudsmith
|
|
permissions: {}
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
release_tag:
|
|
description: GitHub release tag containing the package 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 '*.apk' \
|
|
--pattern '*.deb' \
|
|
--pattern '*.rpm'
|
|
|
|
- name: Upload packages to Cloudsmith
|
|
uses: LizardByte/actions/actions/cloudsmith_upload@5cffab388578559f85fa83c6f7bfff244e06600d # v2026.1108.210022
|
|
with:
|
|
api_key: ${{ secrets.CLOUDSMITH_API_KEY }}
|
|
owner: lizardbyte
|
|
package_path: artifacts/packages
|
|
republish: true
|
|
repository: ${{ inputs.repository }}
|