mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-11-28 00:03:56 +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@28374bf43cc8b6ee88b9b8a3419b2ac7a6573906 # v2026.928.123224
|
|
with:
|
|
api_key: ${{ secrets.CLOUDSMITH_API_KEY }}
|
|
owner: lizardbyte
|
|
package_path: artifacts/packages
|
|
republish: true
|
|
repository: ${{ inputs.repository }}
|