Using this action you can create cross-platform self-extracting archives of pixi environments through the pixi-build-python backend.
It is a fork of the pixi-pack-action that is using the rattler backend.
name: π· Build & package via Pixi π§
on:
release:
types:
- published # A release, pre-release, or draft of a release was published.
workflow_dispatch:
permissions:
contents: write
jobs:
build-and-package:
name: Build package π§π¦π
runs-on: ubuntu-24.04
strategy:
matrix:
platform: [ "osx-arm64", "linux-64", "win-64" ]
fail-fast: false
steps:
- name: π₯ Checkout repo
uses: actions/checkout@v6
- name: Run Pixi-Pack π§π¦
uses: ehrenfeu/pixi-pack-action-python@v7
with:
platform: ${{ matrix.platform }}
- name: π€ Upload to Release
uses: softprops/action-gh-release@v3
with:
files: |
${{ github.event.repository.name }}-*.sh
${{ github.event.repository.name }}-*.ps1