Skip to content

Cumulocity CLI 2.44.1 #64

Cumulocity CLI 2.44.1

Cumulocity CLI 2.44.1 #64

name: publish-linux-packages
on:
workflow_dispatch:
release:
types: [released]
jobs:
publish_to_repo:
runs-on: ubuntu-latest
steps:
# Skip publishing to jfrog as linux packages hosting has been moved
# to a custom github repo: reubenmiller/go-c8y-cli-repo
# Depending on how stable the new setup is, this task could be removed in the future
# The publishing of the current released package is done via a different github action
# "publish-linux-packages" once the release has been officially approved.
- name: Publish Linux Packages
if: ${{ false }}
run: task publish-linux-packages
env:
JFROG_APIKEY: ${{ secrets.JFROG_APIKEY }}
- name: Trigger publish to apt/apk/rpm repositories
run: |
gh workflow run publish.yml -R reubenmiller/go-c8y-cli-repo
env:
GITHUB_TOKEN: ${{ secrets.CR_PAT }}
publish-nuget:
runs-on: ubuntu-latest
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
steps:
- uses: actions/checkout@v4
- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: install tooling
run: go install golang.org/x/tools/cmd/goimports@latest
- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: '~> v1'
install-only: true
- name: Install Task
uses: arduino/setup-task@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Powershell Module
run: task generate build
- uses: actions/upload-artifact@v4
with:
name: ReleaseArtifacts
path: |
output_pwsh/PSc8y/
- name: Publish Powershell Module (PSc8y)
run: task publish-powershell