-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (25 loc) · 1.15 KB
/
package.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
name: zip-packaging
on: [ push, pull_request ]
jobs:
create-zip-package:
runs-on: ubuntu-latest
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.
image: ghcr.io/archlinux/archlinux:base-devel
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: pacman -Syu --noconfirm blueprint-compiler npm typescript gobject-introspection libadwaita zip
- name: Build & Package Noiseclapper
run: make pack
- name: Extract current branch name
id: branch-name
uses: tj-actions/branch-names@v7
- name: Format branch name # Avoids GitHub Actions panicking about / characters in artifact names.
id: format-branch-name
run: echo "formatted_branch=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr -s '/' '-')" >> $GITHUB_OUTPUT
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: noiseclapper-artifacts-${{ steps.format-branch-name.outputs.formatted_branch }}
path: [email protected]