Skip to content

Commit 9b46327

Browse files
authored
ci: Re-add automatic zip packaging (#17)
1 parent 03c64d9 commit 9b46327

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/package.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: zip-packaging
2+
3+
on: [ push, pull_request ]
4+
5+
jobs:
6+
create-zip-package:
7+
runs-on: ubuntu-latest
8+
9+
container: # We use the latest Arch Linux image, as we need the latest version of blueprint-compiler. We need make, so base-devel has to be used.
10+
image: ghcr.io/archlinux/archlinux:base-devel
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Install dependencies
17+
run: pacman -Syu --noconfirm blueprint-compiler npm typescript gobject-introspection libadwaita zip
18+
19+
- name: Build & Package Noiseclapper
20+
run: make pack
21+
22+
- name: Extract current branch name
23+
id: branch-name
24+
uses: tj-actions/branch-names@v7
25+
26+
- name: Format branch name # Avoids GitHub Actions panicking about / characters in artifact names.
27+
id: format-branch-name
28+
run: echo "formatted_branch=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr -s '/' '-')" >> $GITHUB_OUTPUT
29+
30+
- name: Upload build artifacts
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: noiseclapper-artifacts-${{ steps.format-branch-name.outputs.formatted_branch }}
34+

0 commit comments

Comments
 (0)