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/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
strategy:
matrix:
arch: ['armhf','amd64','arm64','ppc64el','s390x','i386']
steps:
- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1.1.1
with:
snapcraft_token: ${{ secrets.snapcraft_token }}
- name: Push to stable
run: |
VERSION=`snapcraft list-revisions slcli --arch ${{ matrix.arch }} | grep "edge\*" | awk '{print $1}'`
echo Publishing $VERSION on ${{ matrix.arch }}
snapcraft release slcli $VERSION stable

2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: slcli # check to see if it's available
version: '5.8.1+git' # check versioning
version: 'git' # will be replaced by a `git describe` based version string
summary: Python based SoftLayer API Tool. # 79 char long summary
description: |
A command-line interface is also included and can be used to manage various SoftLayer products and services.
Expand Down