GitHub Action¶
The repository ships a composite action, complex256/mibpkg@v1, that builds packages and publishes a
GitHub release cars can update from.
Workflow¶
mibpkg new writes .github/workflows/mibpkg-release.yml:
name: mibpkg release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Build your program into the package directory first.
- uses: complex256/mibpkg@v1
with:
packages: .
Push a tag:
Inputs¶
| Input | Default | Meaning |
|---|---|---|
packages |
. |
Space-separated package directories or .mpk files |
tag |
the pushed tag | Release tag |
args |
empty | Extra mibpkg release flags (--id, --name, --keep, ...) |
First release¶
The first release needs a collection id and name:
Later releases reuse the published collection.
What it does¶
- Downloads the Linux host
mibpkgfrom the mibpkg release. - Runs
mibpkg release <packages> --repo <this repo> --tag <tag> ... --publish. - Creates the GitHub release with
index.jsonand the package files.
Permissions¶
The workflow needs contents: write to create the release.