Skip to content

jpm-canonical is building a snap #12

jpm-canonical is building a snap

jpm-canonical is building a snap #12

Workflow file for this run

name: Build snap package
run-name: ${{ github.actor }} is building a snap
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allow manual trigger
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Branch name
env:
PR_NR: ${{ github.event.pull_request.number }}
EV_NR: ${{ github.event.number }}
run: |
echo "GITHUB_REF=${GITHUB_REF}"
echo "GITHUB_HEAD_REF=${GITHUB_HEAD_REF}"
echo "PR_NR=${PR_NR}"
echo "EV_NR=${EV_NR}"
echo "${{ toJson(github) }}"
- name: Build snap
uses: snapcore/action-build@v1
id: snapcraft
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: go-hello-world.snap
path: ${{ steps.snapcraft.outputs.snap }}
if-no-files-found: error