mirror of
https://codeberg.org/icewind/ptouch-api.git
synced 2026-06-03 19:04:08 +02:00
release ci
This commit is contained in:
parent
9613b2c3ef
commit
9275b243e0
2 changed files with 36 additions and 0 deletions
31
.forgejo/workflows/release.yml
Normal file
31
.forgejo/workflows/release.yml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags: ["*"]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
|
with:
|
||||||
|
name: link
|
||||||
|
instance: https://cache.icewind.link
|
||||||
|
- name: Collect assets
|
||||||
|
run: |
|
||||||
|
mkdir assets
|
||||||
|
for asset in x86_64-unknown-linux-musl aarch64-unknown-linux-musl; do
|
||||||
|
nix build .#$asset
|
||||||
|
cp result/bin/ptouch-api assets/$asset
|
||||||
|
done
|
||||||
|
- name: Create release
|
||||||
|
uses: https://code.forgejo.org/actions/forgejo-release@v2.6.0
|
||||||
|
with:
|
||||||
|
direction: upload
|
||||||
|
release-dir: assets
|
||||||
|
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
|
@ -19,6 +19,11 @@
|
||||||
ptouch-api = pkgs: pkgs.ptouch-api;
|
ptouch-api = pkgs: pkgs.ptouch-api;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
crossTargets = [
|
||||||
|
"x86_64-unknown-linux-musl"
|
||||||
|
"aarch64-unknown-linux-musl"
|
||||||
|
];
|
||||||
|
|
||||||
nixosModules = {outputs, ...}: {
|
nixosModules = {outputs, ...}: {
|
||||||
default = {
|
default = {
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue