Skip to content

Commit a557fd8

Browse files
committed
CI: add snap.yml
1 parent 809bf71 commit a557fd8

4 files changed

Lines changed: 42 additions & 4 deletions

File tree

.github/workflows/appimage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
outputs:
88
name:
99
description: "The artifact name"
10-
value: ${{ jobs.build_ubuntu.outputs.name }}
10+
value: ${{ jobs.build_appimage.outputs.name }}
1111

1212
env:
1313
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/flatpak.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
outputs:
77
name:
88
description: "The artifact name"
9-
value: ${{ jobs.build_android.outputs.name }}
9+
value: ${{ jobs.build_flatpak.outputs.name }}
1010

1111
jobs:
1212
build_flatpak:
@@ -19,7 +19,7 @@ jobs:
1919
os: ubuntu-24.04-arm
2020

2121
env:
22-
artifact_name: RabbitRemoteControl
22+
artifact_name: build_flatpak
2323
RabbitRemoteControl_VERSION: v0.0.36
2424

2525
# See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners)

.github/workflows/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
outputs:
88
name:
99
description: "The artifact name"
10-
value: ${{ jobs.build_ubuntu.outputs.name }}
10+
value: ${{ jobs.build_linux.outputs.name }}
1111

1212
env:
1313
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/snap.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Author: Kang Lin <kl222@126.com>
2+
3+
name: snap
4+
5+
on: push
6+
7+
jobs:
8+
build_snap:
9+
env:
10+
artifact_name: build_snap
11+
RabbitRemoteControl_VERSION: v0.0.36
12+
13+
# See: [About GitHub-hosted runners](https://docs.github.com/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners)
14+
# See: [Choosing the runner for a job](https://docs.github.com/actions/writing-workflows/choosing-where-your-workflow-runs/choosing-the-runner-for-a-job)
15+
# See: https://github.com/actions/runner-images/
16+
runs-on: ubuntu-latest
17+
18+
# Map the job outputs to step outputs
19+
outputs:
20+
name: ${{ env.artifact_name }}
21+
22+
steps:
23+
- name: Check out Git repository
24+
uses: actions/checkout@v3
25+
26+
- name: Install Snapcraft
27+
uses: samuelmeuli/action-snapcraft@v3
28+
29+
# You can now run Snapcraft shell commands
30+
- name: Use Snapcraft
31+
run: snapcraft -v --debug
32+
33+
- name: Update artifact
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: ${{ env.artifact_name }}
37+
path: |
38+
${{github.workspace}}/*.snap

0 commit comments

Comments
 (0)