@@ -37,44 +37,45 @@ jobs:
3737
3838 - name : Build documentation
3939 run : |
40- # Create directories
40+ # Create directories and copy docs
4141 mkdir -p docs/{guide,downloads}
42-
43- # Copy docs
4442 cp README.md docs/index.md || echo "# NetworkMonitor" > docs/index.md
4543 cp DEVELOPER.md docs/guide/developer.md || echo "# Developer Guide" > docs/guide/developer.md
46-
47- # Get release info using GitHub API with authentication
48- LATEST_RELEASE=$(curl -s \
49- -H "Accept: application/vnd.github+json" \
50- -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
51- "https://api.github.com/repos/${{ github.repository }}/releases/latest")
52-
53- # Extract version and date, fallback to defaults if not found
54- VERSION=$(echo "$LATEST_RELEASE" | jq -r '.tag_name // "0.1.0"' | sed 's/^v//')
55- DATE=$(echo "$LATEST_RELEASE" | jq -r '.published_at // ""' | cut -d'T' -f1)
56-
57- if [ -z "$DATE" ]; then
58- DATE=$(date +%Y-%m-%d)
59- fi
60-
44+
45+ # Get current artifacts naming from CI workflow
46+ REPO="${{ github.repository }}"
47+ BASE_URL="https://github.com/${REPO}/releases/latest/download"
48+
6149 cat > docs/downloads/index.md << EOL
6250 # Downloads
6351
64- ## Latest Release (v${VERSION})
65-
66- Released: ${DATE}
67-
68- ### Windows
69- - [NetworkMonitor Setup (Installer)](https://github.com/${{ github.repository }}/releases/latest/download/NetworkMonitor-Windows.zip)
70- - [NetworkMonitor Portable](https://github.com/${{ github.repository }}/releases/latest/download/NetworkMonitor-Windows-Setup.zip)
71-
72- ### Linux
73- - [NetworkMonitor for Linux](https://github.com/${{ github.repository }}/releases/latest/download/NetworkMonitor-Linux.tar.gz)
74-
75- ### macOS
76- - [NetworkMonitor for macOS](https://github.com/${{ github.repository }}/releases/latest/download/NetworkMonitor-macOS.zip)
52+ ## Latest Release
7753
54+ ### Download Stable Release
55+
56+ Latest stable builds from our releases:
57+
58+ #### Windows
59+ - [Windows Installer (64-bit)](${BASE_URL}/Windows-artifacts.zip)
60+
61+ #### Linux
62+ - [Linux Build](${BASE_URL}/Linux-artifacts.zip)
63+
64+ #### macOS
65+ - [macOS Build](${BASE_URL}/macOS-artifacts.zip)
66+
67+ ### Development Builds
68+
69+ You can also get the latest development builds directly from our CI:
70+
71+ 1. Go to [Actions](https://github.com/${REPO}/actions/workflows/ci.yml)
72+ 2. Click on the latest successful workflow run
73+ 3. Scroll down to "Artifacts"
74+ 4. Download the appropriate artifact for your platform:
75+ - \`Windows-artifacts.zip\` for Windows
76+ - \`Linux-artifacts.zip\` for Linux
77+ - \`macOS-artifacts.zip\` for macOS
78+
7879 ## System Requirements
7980
8081 ### Windows
0 commit comments