Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

build fluxctl snap using GH action #3072

Merged
merged 2 commits into from
May 26, 2020
Merged
Changes from 1 commit
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
31 changes: 31 additions & 0 deletions .github/workflows/fluxctl-snap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build snap

on:
push:
branches:
- master

jobs:
build-snap:
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v2

- name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1
with:
snapcraft_token: ${{ secrets.snapcraft_token }}
use_lxd: true

- name: Run Snapcraft build
run: sudo snapcraft --use-lxd

- name: Upload to Snapcraft store (edge channel for revs in master)
if: ${{ ! startsWith(github.event.ref, 'refs/tags') }}
run: snapcraft push --release edge fluxctl_*.snap

- name: Upload to Snapcraft store (stable channel for tagged releases)
if: ${{ startsWith(github.event.ref, 'refs/tags') }}
run: snapcraft push --release stable fluxctl_*.snap