mirror of
https://codeberg.org/icewind/galton.git
synced 2026-06-03 10:24:07 +02:00
release setup
This commit is contained in:
parent
e611d1d1ac
commit
09de7e6f00
4 changed files with 38 additions and 6 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 }}
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "galton"
|
name = "galton"
|
||||||
description = "Let your downloads into the right place"
|
description = "Let your downloads fall into the right place"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
rust-version = "1.85.0"
|
rust-version = "1.85.0"
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,11 @@
|
||||||
(import ./nix/overlay.nix)
|
(import ./nix/overlay.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
crossTargets = [
|
||||||
|
"x86_64-unknown-linux-musl"
|
||||||
|
"aarch64-unknown-linux-musl"
|
||||||
|
];
|
||||||
|
|
||||||
packages = {
|
packages = {
|
||||||
galton = pkgs: pkgs.galton;
|
galton = pkgs: pkgs.galton;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -133,11 +133,7 @@ fn maybe_link(source: Option<&str>, target: Option<&str>) {
|
||||||
}
|
}
|
||||||
match symlink(source, target) {
|
match symlink(source, target) {
|
||||||
Ok(()) => {
|
Ok(()) => {
|
||||||
info!(
|
info!(to = target, from = source, "created symlink");
|
||||||
to = target,
|
|
||||||
from = source,
|
|
||||||
"created symlink"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
error!(%error, "failed to link target");
|
error!(%error, "failed to link target");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue