-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Re-add automatic zip packaging (#17)
- Loading branch information
1 parent
03c64d9
commit 9b46327
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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: Noiseclapper@JordanViknar.zip |