Skip to content

Commit

Permalink
ci: Re-add automatic zip packaging (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanViknar authored May 15, 2024
1 parent 03c64d9 commit 9b46327
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/package.yml
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

0 comments on commit 9b46327

Please sign in to comment.