ci: simplify release step and add debug listing
All checks were successful
Build and Release / Build All Platforms (push) Successful in 2m0s

This commit is contained in:
danielvici123
2026-06-08 21:56:25 +02:00
parent bf698bdd5a
commit 6e4a22285e

View File

@@ -24,7 +24,7 @@ jobs:
apt-get update apt-get update
apt-get install -y mingw-w64 zip apt-get install -y mingw-w64 zip
else else
echo "apt-get not found, skipping tool installation (assuming tools are pre-installed or not needed for this environment)" echo "apt-get not found, skipping tool installation"
fi fi
- name: Build Linux - name: Build Linux
@@ -49,25 +49,23 @@ jobs:
cp target/x86_64-pc-windows-gnu/release/dhl.exe dist-windows/dhl.exe cp target/x86_64-pc-windows-gnu/release/dhl.exe dist-windows/dhl.exe
cp config.json.example dist-windows/config.json cp config.json.example dist-windows/config.json
cp response.json.example dist-windows/response.json cp response.json.example dist-windows/response.json
# Check if zip is available, otherwise use tar for windows as well
if command -v zip >/dev/null; then if command -v zip >/dev/null; then
zip -j dhl-windows.zip dist-windows/* zip -j dhl-windows.zip dist-windows/*
else else
tar -czvf dhl-windows.tar.gz -C dist-windows . tar -czvf dhl-windows.tar.gz -C dist-windows .
mv dhl-windows.tar.gz dhl-windows.zip # Rename for consistency in release step mv dhl-windows.tar.gz dhl-windows.zip
fi fi
- name: Debug - List Files
run: ls -lh *.tar.gz *.zip
- name: Create Gitea Release - name: Create Gitea Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with: with:
files: | files: |
dhl-linux.tar.gz dhl-linux.tar.gz
dhl-windows.zip dhl-windows.zip
name: Release ${{ github.ref_name }}
tag_name: ${{ github.ref }}
generate_release_notes: true
draft: false
prerelease: false
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_API_URL: ${{ github.api_url }} GITHUB_API_URL: ${{ github.api_url }}