-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (51 loc) · 2.44 KB
/
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
44
45
46
47
48
49
50
51
52
53
name: Release
on:
push:
tags: [ "**" ]
jobs:
Build:
uses: ./.github/workflows/build.yml
Release:
needs: Build
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: artifacts
- name: Rename artifact
run: |
mv artifacts/hath-rust-x86_64-unknown-linux-gnu/hath-rust hath-rust-x86_64-unknown-linux-gnu
mv artifacts/hath-rust-x86_64-unknown-linux-musl/hath-rust hath-rust-x86_64-unknown-linux-musl
mv artifacts/hath-rust-aarch64-unknown-linux-gnu/hath-rust hath-rust-aarch64-unknown-linux-gnu
mv artifacts/hath-rust-aarch64-unknown-linux-musl/hath-rust hath-rust-aarch64-unknown-linux-musl
mv artifacts/hath-rust-armv7-unknown-linux-gnueabihf/hath-rust hath-rust-armv7-unknown-linux-gnueabihf
mv artifacts/hath-rust-armv7-unknown-linux-musleabihf/hath-rust hath-rust-armv7-unknown-linux-musleabihf
mv artifacts/hath-rust-x86_64-pc-windows-msvc/hath-rust.exe hath-rust-x86_64-pc-windows-msvc.exe
mv artifacts/hath-rust-i686-pc-windows-msvc/hath-rust.exe hath-rust-i686-pc-windows-msvc.exe
mv artifacts/hath-rust-universal-apple-darwin/hath-rust hath-rust-universal-apple-darwin
mv artifacts/hath-rust-aarch64-linux-android/hath-rust hath-rust-aarch64-linux-android
mv artifacts/hath-rust-armv7-linux-androideabi/hath-rust hath-rust-armv7-linux-androideabi
mv artifacts/hath-rust-i686-linux-android/hath-rust hath-rust-i686-linux-android || true
mv artifacts/hath-rust-x86_64-linux-android/hath-rust hath-rust-x86_64-linux-android
- name: Create release
uses: softprops/action-gh-release@v2
with:
draft: true
generate_release_notes: true
files: |
hath-rust-x86_64-unknown-linux-gnu
hath-rust-x86_64-unknown-linux-musl
hath-rust-aarch64-unknown-linux-gnu
hath-rust-aarch64-unknown-linux-musl
hath-rust-armv7-unknown-linux-gnueabihf
hath-rust-armv7-unknown-linux-musleabihf
hath-rust-x86_64-pc-windows-msvc.exe
hath-rust-i686-pc-windows-msvc.exe
hath-rust-universal-apple-darwin
hath-rust-aarch64-linux-android
hath-rust-armv7-linux-androideabi
hath-rust-i686-linux-android
hath-rust-x86_64-linux-android