-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (56 loc) · 2.04 KB
/
release.yaml
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
on:
push:
tags:
- 'v*'
name: Create Release
jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true
submodules: true
- name: Checkout submodules
shell: bash
run: |
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: "Import bot's GPG key for signing commits"
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.ACTION_COMMIT_SING_PRIVATE_KEY }}
passphrase: ${{ secrets.ACTION_COMMIT_SING_PASS }}
git_config_global: true
git_user_signingkey: true
git_commit_gpgsign: true
- name: Extract commit data
uses: rlespinasse/[email protected]
- name: Update submodules
id: mod
run: |
git config --global user.name "Madman10K"
git config --global user.email "[email protected]"
git fetch --all
git submodule update --remote --merge --init --recursive
ver="${{ github.ref_name }}"
sed -i "s/project(UntitledOpen.*/project(UntitledOpen VERSION ${ver:1})/g" CMakeLists.txt
git add . && git commit -m "Automatically bump version" && git push origin HEAD:master
- name: Create archive
shell: bash
run: |
rm -rf .git/
tar cfJ untitled-cli-parser.tar.xz . || echo "Might have failed"
- name: Create Release
uses: softprops/action-gh-release@master
with:
body: |
Check our discord for patch notes: https://discord.gg/4kyWu2Vu
More on what is done this month can be found on the latest newsletter entry: https://madladsquad.com/#monthly-newsletter
draft: false
prerelease: false
files: untitled-cli-parser.tar.xz
generate_release_notes: false