-
Notifications
You must be signed in to change notification settings - Fork 13
45 lines (41 loc) · 1.28 KB
/
publish-release.yml
File metadata and controls
45 lines (41 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SPDX-License-Identifier: LGPL-2.1-or-later
# SPDX-FileNotice: Part of the FreeCAD project.
name: Publish Release
on:
push:
branches:
- stable
paths-ignore:
- '**.md'
workflow_dispatch:
inputs:
checkout_ref:
description: 'The git ref to check out. Defaults to the stable branch.'
required: false
type: string
default: 'stable'
release_channel:
description: 'The Snap Store channel to release to. Defaults to the candidate channel.'
required: false
type: string
default: 'candidate'
jobs:
publish:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
arch: amd64
- os: ubuntu-24.04-arm
arch: arm64
uses: ./.github/workflows/reusable-publish.yml
with:
os: ${{ matrix.os }}
arch: ${{ matrix.arch }}
# If a checkout_ref is provided by the dispatch, use it. Otherwise, use the stable branch).
checkout_ref: ${{ github.event.inputs.checkout_ref || 'stable' }}
# Use the release_channel from the dispatch input; otherwise fallback to 'candidate'.
release_channel: ${{ github.event.inputs.release_channel || 'candidate' }}
secrets:
store_login: ${{ secrets.STORE_LOGIN }}