diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1cd4261d..46ba52d6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 }}