mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-24 11:54:59 +00:00
added and used new github action for publishing packages to packagecloud
This commit is contained in:
parent
6e69c0567a
commit
bb173f6864
3 changed files with 48 additions and 0 deletions
39
.github/workflows/publish-packages.yml
vendored
Normal file
39
.github/workflows/publish-packages.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
name: Publish to PackageCloud
|
||||||
|
on:
|
||||||
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: SourceGit package version
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
secrets:
|
||||||
|
PACKAGECLOUD_TOKEN:
|
||||||
|
required: true
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
name: Publish to PackageCloud
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
runtime: [linux-x64, linux-arm64]
|
||||||
|
steps:
|
||||||
|
- name: Install package_cloud
|
||||||
|
run: gem install package_cloud
|
||||||
|
|
||||||
|
- name: Download package artifacts
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: package.${{ matrix.runtime }}
|
||||||
|
path: packages
|
||||||
|
|
||||||
|
- name: Publish DEB package
|
||||||
|
env:
|
||||||
|
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
||||||
|
run: |
|
||||||
|
package_cloud push your-username/sourcegit/debian/any packages/*.deb
|
||||||
|
|
||||||
|
- name: Publish RPM package
|
||||||
|
env:
|
||||||
|
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
||||||
|
run: |
|
||||||
|
package_cloud push your-username/sourcegit/rpm_any/rpm_any packages/*.rpm
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
|
@ -24,6 +24,14 @@ jobs:
|
||||||
uses: ./.github/workflows/package.yml
|
uses: ./.github/workflows/package.yml
|
||||||
with:
|
with:
|
||||||
version: ${{ needs.version.outputs.version }}
|
version: ${{ needs.version.outputs.version }}
|
||||||
|
publish-packages:
|
||||||
|
needs: [package, version]
|
||||||
|
name: Publish Packages
|
||||||
|
uses: ./.github/workflows/publish-packages.yml
|
||||||
|
with:
|
||||||
|
version: ${{ needs.version.outputs.version }}
|
||||||
|
secrets:
|
||||||
|
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
|
||||||
release:
|
release:
|
||||||
needs: [package, version]
|
needs: [package, version]
|
||||||
name: Release
|
name: Release
|
||||||
|
|
|
@ -18,6 +18,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{
|
||||||
.github\workflows\package.yml = .github\workflows\package.yml
|
.github\workflows\package.yml = .github\workflows\package.yml
|
||||||
.github\workflows\release.yml = .github\workflows\release.yml
|
.github\workflows\release.yml = .github\workflows\release.yml
|
||||||
.github\workflows\localization-check.yml = .github\workflows\localization-check.yml
|
.github\workflows\localization-check.yml = .github\workflows\localization-check.yml
|
||||||
|
.github\workflows\publish-packages.yml = .github\workflows\publish-packages.yml
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49A7C2D6-558C-4FAA-8F5D-EEE81497AED7}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{49A7C2D6-558C-4FAA-8F5D-EEE81497AED7}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue