Skip to content

Commit

Permalink
ci: Add debug logging and step.name for better output.
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ishere committed Dec 3, 2024
1 parent eb6509a commit 69ea457
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,31 @@ jobs:
runs-on: ubuntu-latest
name: nix build
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v27
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
- run: nix build .#_ci.release
- id: zip
- name: Build a release
run: nix build .#_ci.release
- name: Create a ZIP package
id: zip
run: |
ref="${{github.ref_name}}"
ref="${ref//\//.}"
echo "::debug::Git ref resolved to slashless '$ref'"
release="grubshin-bootpact-$ref"
cp -rL result "$release"
echo "::debug::Created a dereferenced release directory '$release'"
artefact="grubshin-bootpact-$ref.zip"
zip -r "$artefact" "$release"
echo "::debug::Generated release artefact '$artefact'"
echo "artefact=$artefact" >> "$GITHUB_OUTPUT"
echo "::debug::Release artefacts saved to step outputs"
- name: Create Release
id: create_release
Expand All @@ -55,16 +63,21 @@ jobs:
# Version ${{ github.ref_name }} Released!
[Showcase](https://github.com/max-ishere/grubshin-bootpact/blob/${{ github.sha }}/SHOWCASE.md)
## Installation
Here is the TLDR of the installation instructions ([Full instuctions](https://github.com/max-ishere/grubshin-bootpact/blob/${{ github.sha }}/INSTALLATION.md)):
- Download the release zip (`${{ steps.zip.outputs.artefact }}`). It contains all the variants of the theme.
- Unzip and copy the variant you like to `/boot/grub/themes/grubshin-bootpact`.
> [!IMPORTANT]
> Make sure that after the theme is copied `theme.txt` is in
> `/boot/grub/themes/grubshin-bootpact/theme.txt`. Otherwise GRUB will not be able to find it.
- Add this to `/etc/default/grub`:
```
GRUB_THEME="/boot/grub/themes/grubshin-bootpact/theme.txt"
```
Expand Down

0 comments on commit 69ea457

Please sign in to comment.