Update release.yaml #83
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: Get tag | |
id: tag | |
shell: bash | |
run: | | |
git config --global user.name "Madman10K" | |
git config --global user.email "[email protected]" | |
git fetch --all | |
git submodule update --remote --merge --init --recursive | |
tag="${{ github.ref_name }}" | |
tag="${tag:1}" | |
numeric_tag="${tag//.}" | |
numeric_tag="$(echo ${numeric_tag} | sed 's/^0*//')" | |
echo "out=untitled-imgui-framework-${tag}" >> $GITHUB_OUTPUT | |
sed -i "s/set(UIMGUI_FRAMEWORK_VERSION .*/set(UIMGUI_FRAMEWORK_VERSION ${tag})/g" Framework/cmake/Version.cmake | |
sed -i "s/set(UIMGUI_FRAMEWORK_VERSION_NUMERIC .*)/set(UIMGUI_FRAMEWORK_VERSION_NUMERIC ${numeric_tag})/g" Framework/cmake/Version.cmake | |
(git add . && git commit -m "Automatically bump version" && git push origin HEAD:master) || echo "Nothing to commit" | |
- name: Create archive | |
shell: bash | |
run: | | |
rm -rf .git/ | |
tar cfJ ${{ steps.tag.outputs.out }}.tar.xz . --transform "s,^,${{ steps.tag.outputs.out }}/," * || echo "Might have failed" | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
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: ${{ steps.tag.outputs.out }}.tar.xz | |
generate_release_notes: false |