-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (51 loc) · 1.4 KB
/
release.yml
File metadata and controls
60 lines (51 loc) · 1.4 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: release
on:
push:
tags:
- "v*"
jobs:
build:
name: build-${{ matrix.asset }}
permissions:
contents: read
runs-on: ${{ matrix.runner }}
strategy:
fail-fast: false
matrix:
include:
- runner: ubuntu-latest
asset: fuori-linux-x64.tar.gz
- runner: macos-15-intel
asset: fuori-macos-x64.tar.gz
- runner: macos-latest
asset: fuori-macos-arm64.tar.gz
steps:
- uses: actions/checkout@v5
- name: Build
run: make VERSION="${GITHUB_REF_NAME}"
- name: Package
run: tar -czf "${{ matrix.asset }}" fuori README.md LICENSE
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset }}
path: ${{ matrix.asset }}
release:
name: publish-release
needs: build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v5
with:
path: dist
- name: Create or update release
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
tag="${GITHUB_REF_NAME}"
gh release view "$tag" >/dev/null 2>&1 || gh release create "$tag" --title "$tag" --generate-notes
gh release upload "$tag" dist/*/* --clobber