Skip to content

add basic spread infrastructure #11

add basic spread infrastructure

add basic spread infrastructure #11

Workflow file for this run

name: Build rock
on:
pull_request:
branches:
- 'core2[24]-[78]'
push:
branches:
- 'core2[24]-[78]'
jobs:
build-rock:
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build rock
uses: canonical/craft-actions/rockcraft-pack@main
with:
rockcraft-channel: candidate
- name: Get rock name
id: vars
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]
then
echo "rockname=pr-${{ github.event.number }}" >> "$GITHUB_OUTPUT"
else
echo "rockname=${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
fi
- name: Upload rock
uses: actions/upload-artifact@v4
with:
name: snapcraft-rock
path: '*.rock'