Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature/ci-release-on-debian' in…
Browse files Browse the repository at this point in the history
…to tn-debian
  • Loading branch information
TjerkNan committed Nov 15, 2024
2 parents d33f954 + 11512a7 commit 08c9818
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 0 deletions.
69 changes: 69 additions & 0 deletions .github/workflows/release-debian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Release - Debian

on:
workflow_dispatch:
inputs:
bundle:
description: "Bundle ID (next, self)"
required: true
default: "next"

jobs:
tagged-release:
runs-on: ubuntu-latest
container: debian:11
env:
MIX_ENV: prod

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
run: |
apt-get update
apt-get install -y curl git build-essential
curl -fsSL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y nodejs
- name: Tag name
id: tag
run: echo "TAG=${{ github.event.inputs.bundle }}_$(date +%F)_${{ github.run_number }}" >> $GITHUB_ENV

- id: setup-elixir
uses: erlef/setup-elixir@v1
with:
otp-version: "25.3.2.7"
elixir-version: "1.14.0"

- name: Setup the Elixir project
run: |
mix deps.get
working-directory: core

- name: Build Frontend
run: |
./scripts/build-frontend
working-directory: core

- name: Build release
run: |
./scripts/build-release
working-directory: core
env:
BUNDLE: ${{ github.event.inputs.bundle }}
VERSION: ${{ env.TAG }}

- name: Archive release
run: |
tar cfj "../${{ env.TAG }}.tar.bz2" "${{ env.TAG }}"
working-directory: core

- name: Publish Release
uses: softprops/action-gh-release@v2
with:
tag_name: "${{ env.TAG }}"
prerelease: false
fail_on_unmatched_files: true
files: |
${{ env.TAG }}.tar.bz2
1 change: 1 addition & 0 deletions core/frameworks/pixel/components/clickable_card.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ defmodule Frameworks.Pixel.ClickableCard do
<div
x-data="{show_actions: false}"
class={"h-full rounded-lg bg-#{@bg_color} #{@size}"}
id={"card-#{@id}"}
>
<div class="flex flex-col h-full">
<div class="flex-grow">
Expand Down

0 comments on commit 08c9818

Please sign in to comment.