From 4b217232ae1069b39a66672c20597896992bc311 Mon Sep 17 00:00:00 2001 From: James Carroll Date: Sat, 3 Feb 2024 19:15:16 +0000 Subject: [PATCH] Refactor CI --- .github/workflows/build.yaml | 29 +++++------------------------ 1 file changed, 5 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 21f1562..514a470 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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' }}