Skip to content

Commit 8f96448

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

4 files changed

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

0 commit comments

Comments
 (0)