mirror of
https://codeberg.org/icewind/originfox.git
synced 2026-06-03 10:14:08 +02:00
release ci
This commit is contained in:
parent
55fb8a945c
commit
c259c159e2
2 changed files with 36 additions and 0 deletions
31
.forgejo/workflows/release.yaml
Normal file
31
.forgejo/workflows/release.yaml
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/originfox 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 }}
|
||||||
|
|
@ -16,6 +16,11 @@
|
||||||
(import ./nix/overlay.nix)
|
(import ./nix/overlay.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
crossTargets = [
|
||||||
|
"x86_64-unknown-linux-musl"
|
||||||
|
"aarch64-unknown-linux-musl"
|
||||||
|
];
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
originfox = pkgs: pkgs.originfox;
|
originfox = pkgs: pkgs.originfox;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue