forked from Wilfred/difftastic
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1022 Bytes
/
release.yml
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
name: Release
on:
push:
tags:
- "[0-9]+.*"
permissions:
contents: write
packages: write
jobs:
create-release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Create a Release
uses: elgohr/Github-Release-Action@v5
with:
title: ${{ github.ref }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
strategy:
fail-fast: false
matrix:
include:
- target: aarch64-unknown-linux-gnu
os: ubuntu-20.04
- target: aarch64-apple-darwin
os: macos-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: taiki-e/upload-rust-binary-action@v1
with:
bin: difft
# (optional) On which platform to distribute the `.tar.gz` file.
tar: unix
# (optional) Target triple, default is host triple.
target: ${{ matrix.target }}
token: ${{ secrets.GITHUB_TOKEN }}