mirror of
https://codeberg.org/icewind/palantir.git
synced 2026-06-03 10:14:09 +02:00
release ci
This commit is contained in:
parent
217933c1a1
commit
47b6e9a287
1 changed files with 18 additions and 25 deletions
|
|
@ -1,41 +1,34 @@
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [created]
|
tags: ["*"]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on: nix
|
runs-on: nix
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- binary-suffix: ".exe"
|
|
||||||
target: x86_64-pc-windows-gnu
|
|
||||||
- binary-suffix: ""
|
|
||||||
target: x86_64-unknown-linux-musl
|
|
||||||
- binary-suffix: ""
|
|
||||||
target: i686-unknown-linux-musl
|
|
||||||
- binary-suffix: ""
|
|
||||||
target: armv7-unknown-linux-musleabihf
|
|
||||||
- binary-suffix: ""
|
|
||||||
target: aarch64-unknown-linux-musl
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: https://codeberg.org/icewind/attic-action@v1
|
- uses: https://codeberg.org/icewind/attic-action@v1
|
||||||
with:
|
with:
|
||||||
name: link
|
name: link
|
||||||
instance: https://cache.icewind.link
|
instance: https://cache.icewind.link
|
||||||
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
- name: Collect assets
|
||||||
- run: nix build .#${{ matrix.target }}
|
run: |
|
||||||
- name: Upload binary to release
|
mkdir assets
|
||||||
uses: https://github.com/svenstaro/upload-release-action@v2
|
for asset in x86_64-unknown-linux-musl aarch64-unknown-linux-musl i686-unknown-linux-musl armv7-unknown-linux-musleabihf; do
|
||||||
|
nix build .#$asset
|
||||||
|
cp result/bin/sidewindow assets/$asset
|
||||||
|
done
|
||||||
|
|
||||||
|
nix build .#x86_64-pc-windows-gnu
|
||||||
|
cp result/bin/sidewindow.exe assets/x86_64-pc-windows-gnu.exe
|
||||||
|
- name: Create release
|
||||||
|
uses: https://code.forgejo.org/actions/forgejo-release@v2.11.3
|
||||||
with:
|
with:
|
||||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
direction: upload
|
||||||
file: result/bin/sidewindow${{ matrix.binary-suffix }}
|
release-dir: assets
|
||||||
asset_name: sidewindow-${{ matrix.target }}${{ matrix.binary-suffix }}
|
token: "${{ secrets.FORGEJO_TOKEN }}"
|
||||||
tag: ${{ github.ref }}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue