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
23 changes: 23 additions & 0 deletions .github/workflows/snap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish to Snap Store

on:
release:
types: [released]

jobs:
snap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: snapcore/action-build@v1
id: build

- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
with:
snap: ${{ steps.build.outputs.snap }}
release: stable
32 changes: 32 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: copia-cli
version: git
summary: CLI for Copia — source control for industrial automation
description: |
copia-cli brings Copia repositories, issues, pull requests, and other
concepts to the terminal next to where you are already working with
git and your code.

base: core24
grade: stable
confinement: classic
license: AGPL-3.0

platforms:
amd64:
arm64:

parts:
copia-cli:
plugin: go
source: .
source-type: local
build-snaps:
- go/1.26/stable
go-buildtags: []
go-generate: []
override-build: |
go build -ldflags "-s -w -X github.com/qubernetic/copia-cli/internal/build.Version=$(git describe --tags --always) -X github.com/qubernetic/copia-cli/internal/build.Date=$(date -u +%Y-%m-%d)" -o $CRAFT_PART_INSTALL/bin/copia-cli ./cmd/copia-cli

apps:
copia-cli:
command: bin/copia-cli
Loading