-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (66 loc) · 2.32 KB
/
release-content-to-candidate.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Release webkitgtk-6-gnome-2404 to candidate
on:
workflow_run:
workflows: ["Release webkitgtk-6-gnome-2404-sdk to candidate"]
types: [completed]
branches: ["2404"]
paths:
- "webkitgtk-6-gnome-2404/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
issues: write
jobs:
get-architectures:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
name: 🖥 Get snap architectures
runs-on: ubuntu-latest
outputs:
architectures: ${{ steps.get-architectures.outputs.architectures }}
architectures-list: ${{ steps.get-architectures.outputs.architectures-list }}
steps:
- name: 🖥 Get snap architectures
id: get-architectures
uses: snapcrafters/ci/get-architectures@main
with:
snapcraft-project-root: "webkitgtk-6-gnome-2404"
release-content:
name: 🚢 Release to latest/candidate
needs: get-architectures
runs-on: ubuntu-latest
environment: "2404 Branch"
timeout-minutes: 4320
strategy:
fail-fast: false
matrix:
architecture: ${{ fromJSON(needs.get-architectures.outputs.architectures-list) }}
steps:
- name: 🚢 Release to latest/candidate
id: build-amd64
uses: snapcrafters/ci/release-to-candidate@main
with:
architecture: ${{ matrix.architecture }}
launchpad-token: ${{ secrets.LP_BUILD_SECRET }}
multi-snap: true
snapcraft-project-root: "webkitgtk-6-gnome-2404"
store-token: ${{ secrets.SNAP_STORE_CANDIDATE }}
repo-token: ${{ secrets.SNAPCRAFTERS_BOT_COMMIT }}
call-for-testing:
if: ${{ github.event_name != 'workflow_dispatch' }}
name: 📣 Create call for testing
needs: [release-content, get-architectures]
environment: "2404 Branch"
runs-on: ubuntu-latest
outputs:
issue-number: ${{ steps.issue.outputs.issue-number }}
steps:
- name: 📣 Create call for testing
id: issue
uses: snapcrafters/ci/call-for-testing@main
with:
snapcraft-project-root: "webkitgtk-6-gnome-2404"
architectures: ${{ needs.get-architectures.outputs.architectures }}
github-token: ${{ secrets.GITHUB_TOKEN }}