-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (66 loc) · 2 KB
/
Copy path_release.yml
File metadata and controls
76 lines (66 loc) · 2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Release
on:
workflow_call:
inputs:
release_tag:
description: 'Release tag'
required: true
type: string
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate release notes
id: generate-notes
uses: orhun/git-cliff-action@v4
with:
config: .github/cliff.toml
args: --latest --strip header
env:
OUTPUT: CHANGES.md
GITHUB_REPO: ${{ github.repository }}
- name: Download Linux artifacts
uses: actions/download-artifact@v4
with:
name: markdown-neuraxis-linux
path: ./release-artifacts
- name: Download Windows artifacts
uses: actions/download-artifact@v4
with:
name: markdown-neuraxis-windows
path: ./release-artifacts
- name: Download macOS artifacts
uses: actions/download-artifact@v4
with:
name: markdown-neuraxis-macos
path: ./release-artifacts
- name: Download macOS ARM64 artifacts
uses: actions/download-artifact@v4
with:
name: markdown-neuraxis-macos-arm64
path: ./release-artifacts
- name: Download Android artifacts
uses: actions/download-artifact@v4
with:
name: markdown-neuraxis-android
path: ./release-artifacts
- name: Generate checksums
run: |
cd release-artifacts
sha256sum * > checksums.txt
cat checksums.txt
- name: Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.release_tag }}
name: ${{ inputs.release_tag }}
body_path: CHANGES.md
files: |
release-artifacts/markdown-neuraxis-cli-*
release-artifacts/markdown-neuraxis-dioxus-*
release-artifacts/markdown-neuraxis-android.apk
release-artifacts/checksums.txt