Update release.yaml #19
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |