Skip to content

Commit

Permalink
Refactor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JGCarroll committed Feb 4, 2024
1 parent bf41e14 commit 4b21723
Showing 1 changed file with 5 additions and 24 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,17 @@
name: Build and Deploy
name: Basic build test

on:
workflow_dispatch:
inputs:
branch:
description: 'Name of the Git branch to build.'
required: true
default: 'master'
release-channel:
description: 'Channel on the Snap Store to push to (e.g: latest/stable/bug-fix)'
required: true
default: 'latest/beta'
push:
branches:
- master
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.branch || 'master' }}
- uses: actions/checkout@v4
- uses: snapcore/action-build@v1
id: build
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: 'weka.snap'
name: '${{ github.sha }}.snap'
path: ${{ steps.build.outputs.snap}}
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }}
with:
snap: ${{ steps.build.outputs.snap }}
release: ${{ github.event.inputs.release-channel || 'latest/beta' }}

0 comments on commit 4b21723

Please sign in to comment.