-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (37 loc) · 1.17 KB
/
release.yml
File metadata and controls
39 lines (37 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
push:
branches:
- release
tags:
- "v*"
name: Release
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
id-token: write # trusted publishing + attestations
actions: write # caching
contents: write # see https://github.com/softprops/action-gh-release#permissions
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
persist-credentials: false
- name: Install Nix
uses: cachix/install-nix-action@51f3067b56fe8ae331890c77d4e454f6d60615ff # v31
- name: Build static-linked binary with musl
run: nix build .#musl -Lv
- name: Create tar
run: tar -cvzf mirror-intel.tar.gz -C result/bin mirror-intel
- name: Create GitHub release
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: ${{ github.event.head_commit.message }}
draft: false
prerelease: true
files: mirror-intel.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}