Skip to content

Commit 9cf6872

Browse files
Merge pull request #1271 from allmightyspiff/snapCraftAuto
#1252 added automated snap publisher
2 parents 94572fc + bd7cc6d commit 9cf6872

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
arch: ['armhf','amd64','arm64','ppc64el','s390x','i386']
13+
steps:
14+
- name: Install Snapcraft
15+
uses: samuelmeuli/action-snapcraft@v1.1.1
16+
with:
17+
snapcraft_token: ${{ secrets.snapcraft_token }}
18+
- name: Push to stable
19+
run: |
20+
VERSION=`snapcraft list-revisions slcli --arch ${{ matrix.arch }} | grep "edge\*" | awk '{print $1}'`
21+
echo Publishing $VERSION on ${{ matrix.arch }}
22+
snapcraft release slcli $VERSION stable
23+

snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: slcli # check to see if it's available
2-
version: '5.8.1+git' # check versioning
2+
version: 'git' # will be replaced by a `git describe` based version string
33
summary: Python based SoftLayer API Tool. # 79 char long summary
44
description: |
55
A command-line interface is also included and can be used to manage various SoftLayer products and services.

0 commit comments

Comments
 (0)