mirror of
https://github.com/logos-blockchain/logos-blockchain-ui.git
synced 2026-07-08 00:39:28 +00:00
Add release ci file
This commit is contained in:
parent
85b0b153f2
commit
1b5ae8588d
69
.github/workflows/release.yml
vendored
Normal file
69
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
name: Multi-Platform Nix Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-24.04
|
||||
arch: x86_64-linux
|
||||
- os: ubuntu-24.04-arm
|
||||
arch: aarch64-linux
|
||||
- os: macos-14
|
||||
arch: aarch64-darwin
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- uses: cachix/cachix-action@v15
|
||||
with:
|
||||
name: logos-co
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- name: Build portable module
|
||||
run: nix build '.#lgx-portable' --out-link result-lgx-portable
|
||||
|
||||
- name: Extract LGX bundle
|
||||
run: cp result-lgx-portable/*.lgx ./logos-blockhain-ui-${{ matrix.arch }}.lgx
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: logos-blokchain-ui-${{ matrix.arch }}
|
||||
path: '*.lgx'
|
||||
if-no-files-found: error
|
||||
|
||||
release:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: release-binaries
|
||||
pattern: logos-module-*
|
||||
merge-multiple: true
|
||||
|
||||
- name: Create GitHub Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: release-binaries/*.lgx
|
||||
generate_release_notes: false
|
||||
draft: true
|
||||
tag_name: ${{ github.ref_name }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user