-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 2.06 KB
/
make_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
54
55
56
57
58
59
name: Make new release
on:
push:
tags:
- "v*.*.*"
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
create-release:
name: Create and publish release
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: dawidd6/action-download-artifact@v6
with:
workflow: build_artifacts.yml
workflow_conclusion: success
- name: Organise files
shell: bash
run: |
mv sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl.tar.gz ./
mv sablast-candidate-x86_64-apple-darwin/sablast-candidate-x86_64-apple-darwin.tar.gz ./
mv sablast-candidate-aarch64-apple-darwin/sablast-candidate-aarch64-apple-darwin.tar.gz ./
- name: Check file integrity
shell: bash
run: |
sha256sum --check sablast-candidate-x86_64-unknown-linux-musl/sablast-candidate-x86_64-unknown-linux-musl.tar.gz.sha256sum
sha256sum --check sablast-candidate-x86_64-apple-darwin/sablast-candidate-x86_64-apple-darwin.tar.gz.sha256sum
sha256sum --check sablast-candidate-aarch64-apple-darwin/sablast-candidate-aarch64-apple-darwin.tar.gz.sha256sum
- name: Designate version
shell: bash
run: |
mv sablast-candidate-x86_64-unknown-linux-musl.tar.gz sablast-candidate-x86_64-${{ github.ref_name }}-linux-musl.tar.gz
mv sablast-candidate-x86_64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-x86_64-apple-darwin.tar.gz
mv sablast-candidate-aarch64-apple-darwin.tar.gz sablast-${{ github.ref_name }}-aarch64-apple-darwin.tar.gz
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%d %B %Y')
- name: Publish
uses: softprops/action-gh-release@v2
with:
name: sablast-${{ github.ref_name }} (${{ steps.date.outputs.date }})
draft: true
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
files: |
sablast*tar.gz