Skip to content

Commit

Permalink
refact: Requested improviments on PR for #IENG-869
Browse files Browse the repository at this point in the history
Added separation lines and comentaries to improve redability
Use output as snap name to don't leat hardcoded version or architecture.

Signed-off-by: Lincoln Wallace <[email protected]>
  • Loading branch information
locnnil committed Dec 5, 2023
1 parent f5d3bd7 commit c621d0a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-snap.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
name: Snap Builder
run-name: ${{ github.actor }} is building the ${{ github.repository }}

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allow manual trigger
workflow_dispatch:

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

# Checkout the code
- uses: actions/checkout@v4

# Build the snap
- uses: snapcore/action-build@v1
id: build

# Upload builded artifact
- uses: actions/upload-artifact@v3
with:
name: snap
name: ${{ steps.build.outputs.snap }}
path: ${{ steps.build.outputs.snap }}

0 comments on commit c621d0a

Please sign in to comment.