workflow: Package a Limine tarball that does not rely on version control as well on releases

This commit is contained in:
mintsuki 2021-06-30 23:17:16 +02:00
parent aee3d96242
commit f294fa1e35
1 changed files with 11 additions and 0 deletions

View File

@ -93,6 +93,15 @@ jobs:
git checkout latest-binary
git rebase $BRANCH_NAME-binary && git push origin latest-binary
- name: Cleanup source tree
run: git checkout $TAG_NAME && rm -rf * && git checkout .
- name: Burn version number
run: echo "$TAG_NAME" > version
- name: Package release tarball
run: cd .. && cp -r limine "limine-$TAG_NAME" && rm -rf "limine-$TAG_NAME/.git" && tar -Jcf "limine/limine-$TAG_NAME.tar.xz" "limine-$TAG_NAME"
- name: Create release notes
run: echo "Binary release can be found at https://github.com/limine-bootloader/limine/tree/$TAG_NAME-binary" > rel_notes.txt
@ -100,5 +109,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
body_path: rel_notes.txt
files: |
limine-*.tar.xz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}