-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (44 loc) · 1.28 KB
/
action.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
name: 'ASIMOV release action'
author: 'ASIMOV by Haltia.AI <[email protected]>'
description: 'Action to help automate releasing new versions'
inputs:
changelog-path:
description: 'Path to changelog file'
required: false
default: 'CHANGELOG.md'
compute-checksum:
description: 'Compute checksum for each file?'
required: false
default: 'true'
runs:
using: 'composite'
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
merge-multiple: true
- name: Compute checksums for artifacts
if: ${{ inputs.compute-checksum == 'true' }}
shell: bash
run: |
for file in artifacts/*; do
shasum --algorithm 256 "$file" > "$file.sha256"
done
- name: Checkout repository
uses: actions/checkout@v4
with:
path: repo
- name: Parse changelog
id: query-release-info
uses: release-flow/keep-a-changelog-action@v3
with:
command: query
version: latest
changelog: repo/${{ inputs.changelog-path }}
- name: Create release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.query-release-info.outputs.release-notes }}
tag_name: ${{ github.ref_name }}
files: artifacts/*