-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.17 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
name: Prepare release
on:
push:
tags:
- '**'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
ref: ${{ github.ref }}
- name: Release Changelogs
id: release-changes
run: |
echo "SUBJECT=$(cat CHANGES.TITLE)" >> "$GITHUB_OUTPUT"
echo 'BODY<<EOF' >> "$GITHUB_OUTPUT"
cat CHANGES >> "$GITHUB_OUTPUT"
printf "\n- SHA256 sum of uprepos: " >> "$GITHUB_OUTPUT"
sha256sum uprepos >> "$GITHUB_OUTPUT"
echo 'EOF' >> "$GITHUB_OUTPUT"
- name: Release Making
uses: softprops/action-gh-release@v2
with:
files: uprepos
body: ${{ steps.release-changes.outputs.BODY }}
name: ${{ steps.release-changes.outputs.SUBJECT }}
- name: Notify build
uses: tsickert/discord-webhook@v6.0.0
with:
webhook-url: ${{ secrets.WEBHOOK_URL }}
content: "<:branding:1268904791199842385> ${{ steps.release-changes.outputs.SUBJECT }} <:branding:1268904791199842385>\n\n${{ steps.release-changes.outputs.BODY }}"