Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 31 additions & 22 deletions .github/workflows/aur.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,41 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate PKGBUILD
run: |
VERSION=${{ steps.version.outputs.version }}
SHA_X86=${{ steps.checksums.outputs.sha256_x86_64 }}
SHA_ARM=${{ steps.checksums.outputs.sha256_aarch64 }}
cat > PKGBUILD <<PKGEOF
# Maintainer: Qubernetic <info@qubernetic.com>
pkgname=copia-cli-bin
pkgver=${VERSION}
pkgrel=1
pkgdesc="CLI for Copia — source control for industrial automation"
arch=('x86_64' 'aarch64')
url="https://github.com/qubernetic/copia-cli"
license=('AGPL-3.0-only')
provides=('copia-cli')
conflicts=('copia-cli')

source_x86_64=("\${url}/releases/download/v\${pkgver}/copia-cli_\${pkgver}_linux_amd64.tar.gz")
source_aarch64=("\${url}/releases/download/v\${pkgver}/copia-cli_\${pkgver}_linux_arm64.tar.gz")
sha256sums_x86_64=('${SHA_X86}')
sha256sums_aarch64=('${SHA_ARM}')

package() {
install -Dm755 copia-cli "\${pkgdir}/usr/bin/copia-cli"
install -Dm644 LICENSE "\${pkgdir}/usr/share/licenses/\${pkgname}/LICENSE"
}
PKGEOF
sed -i 's/^ //' PKGBUILD

- name: Publish to AUR
uses: KSXGitHub/github-actions-deploy-aur@v3
with:
pkgname: copia-cli-bin
pkgbuild: |
# Maintainer: Qubernetic <hello@qubernetic.io>
pkgname=copia-cli-bin
pkgver=${{ steps.version.outputs.version }}
pkgrel=1
pkgdesc="CLI for Copia — source control for industrial automation"
arch=('x86_64' 'aarch64')
url="https://github.com/qubernetic/copia-cli"
license=('AGPL-3.0-only')
provides=('copia-cli')
conflicts=('copia-cli')

source_x86_64=("\${url}/releases/download/v\${pkgver}/copia-cli_\${pkgver}_linux_amd64.tar.gz")
source_aarch64=("\${url}/releases/download/v\${pkgver}/copia-cli_\${pkgver}_linux_arm64.tar.gz")
sha256sums_x86_64=('${{ steps.checksums.outputs.sha256_x86_64 }}')
sha256sums_aarch64=('${{ steps.checksums.outputs.sha256_aarch64 }}')

package() {
install -Dm755 copia-cli "\${pkgdir}/usr/bin/copia-cli"
install -Dm644 LICENSE "\${pkgdir}/usr/share/licenses/\${pkgname}/LICENSE"
}
pkgbuild: ./PKGBUILD
commit_username: qubernetic
commit_email: hello@qubernetic.io
commit_email: info@qubernetic.com
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "Update to ${{ steps.version.outputs.version }}"
4 changes: 4 additions & 0 deletions .github/workflows/bump-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
with:
ref: develop

- uses: actions/setup-go@v6
with:
go-version: stable

- name: Check latest Go version
id: check
run: |
Expand Down
10 changes: 3 additions & 7 deletions .github/workflows/copr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ jobs:
- name: Configure copr-cli
run: |
mkdir -p ~/.config
cat > ~/.config/copr <<EOF
[copr-cli]
login = ${{ secrets.COPR_LOGIN }}
username = ${{ secrets.COPR_USERNAME }}
token = ${{ secrets.COPR_TOKEN }}
copr_url = https://copr.fedorainfracloud.org
EOF
printf '[copr-cli]\nlogin = %s\nusername = %s\ntoken = %s\ncopr_url = https://copr.fedorainfracloud.org\n' \
"${{ secrets.COPR_LOGIN }}" "${{ secrets.COPR_USERNAME }}" "${{ secrets.COPR_TOKEN }}" \
> ~/.config/copr

- name: Extract version
id: version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/winget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
publish:
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: vedantmgoyal9/winget-releaser@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ nfpms:
package_name: copia-cli
vendor: Qubernetic
homepage: "https://github.com/qubernetic/copia-cli"
maintainer: "Qubernetic <hello@qubernetic.io>"
maintainer: "Qubernetic <info@qubernetic.com>"
description: "CLI for Copia — source control for industrial automation"
license: AGPL-3.0
formats:
Expand Down
Loading