File tree Expand file tree Collapse file tree 10 files changed +26
-158
lines changed
Expand file tree Collapse file tree 10 files changed +26
-158
lines changed Original file line number Diff line number Diff line change @@ -60,20 +60,33 @@ jobs:
6060 "${{ steps.release-info.outputs.title }}" \
6161 "${{ steps.release-info.outputs.body }}"
6262
63+ - name : Configure Git
64+ run : |
65+ git config --global user.name 'github-actions[bot]'
66+ git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
67+
6368 - name : Create branch and commit blog post
6469 id : commit
6570 run : |
66- git config --local user.email "action@github.com"
67- git config --local user.name "GitHub Action"
71+ # Ensure we're on main and up to date
72+ git checkout main
73+ git pull origin main
6874
6975 BRANCH_NAME="docs/release-${{ steps.release-info.outputs.version }}-blog-post"
7076 git checkout -b "$BRANCH_NAME"
7177
78+ # Only add blog post files, explicitly avoid workflow files
7279 git add website/blog/*.md
80+
81+ # Check if there are any staged changes
7382 if git diff --staged --quiet; then
7483 echo "No changes to commit"
7584 echo "has_changes=false" >> $GITHUB_OUTPUT
7685 else
86+ # Verify we're only committing blog files
87+ STAGED_FILES=$(git diff --staged --name-only)
88+ echo "Staged files: $STAGED_FILES"
89+
7790 git commit -m "docs: add blog post for release ${{ steps.release-info.outputs.version }}"
7891 git push -u origin "$BRANCH_NAME"
7992 echo "has_changes=true" >> $GITHUB_OUTPUT
Original file line number Diff line number Diff line change @@ -83,23 +83,22 @@ jobs:
8383 - uses : dtolnay/rust-toolchain@stable
8484 name : Install the Rust toolchain
8585
86- - name : Install Debian packaging dependencies
87- run : |
88- sudo apt-get update
89- sudo apt-get install -y \
90- devscripts \
91- debhelper \
92- dh-cargo \
93- libssl-dev \
94- pkg-config
86+ - name : Install ALSA development libraries
87+ run : sudo apt-get update && sudo apt-get install -y libasound2-dev
88+
89+ - name : Install cargo-deb
90+ run : cargo install cargo-deb
91+
92+ - uses : Swatinem/rust-cache@v2
93+ name : Use cached dependencies and artifacts
9594
9695 - name : Build Debian package
97- run : ./scripts/build-deb.sh dh- cargo
96+ run : cargo deb
9897
9998 - name : Find generated .deb
10099 id : find_deb
101100 run : |
102- DEB_PATH=$(ls -1 ../chess-tui_ *.deb | head -n 1)
101+ DEB_PATH=$(find target/debian -name " *.deb" | head -n 1)
103102 echo "deb_path=$DEB_PATH" >> "$GITHUB_OUTPUT"
104103
105104 - uses : softprops/action-gh-release@v2
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ strip = true
4343# Configuration for cargo-deb (alternative packaging method)
4444# Install with: cargo install cargo-deb
4545# Build with: cargo deb
46- maintainer = " Thomas Mauran <thomas.mauran@example .com>"
46+ maintainer = " Thomas Mauran <thomasmauran@yahoo .com>"
4747copyright = " 2023-2025, Thomas Mauran"
4848license-file = [" LICENSE" ]
4949extended-description = """ \
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments