4545 run : scripts/build_binaries
4646
4747 - name : Virus scan
48- run : |
49- scannerVersion=$(clamscan --version)
50- echo "Using scanner version: $scannerVersion"
51-
52- echo "Scanning built binary with ClamAV..."
53- clamscan --recursive --infected --verbose dist/ || SCAN_STATUS=$?
54- if [ "${SCAN_STATUS:-0}" -eq 1 ]; then
55- echo "❌ Virus detected in build artifacts. Build failed." >&2
56- exit 1
57- elif [ "${SCAN_STATUS:-0}" -gt 1 ]; then
58- echo "❌ ClamAV scan error (exit code $SCAN_STATUS). Build failed." >&2
59- exit $SCAN_STATUS
60- fi
61- echo "✅ No viruses found."
48+ run : scripts/run_virus_scan
6249
6350 - name : Create GitHub Release & upload artifacts
6451 uses : softprops/action-gh-release@v2
6956 files : |
7057 dist/ctRestClient_*.tar.gz
7158 dist/checksums.txt
59+ dist/virus_scan.log
7260 env :
7361 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7462
@@ -85,30 +73,30 @@ jobs:
8573 with :
8674 fetch-depth : 0
8775 fetch-tags : true
88-
76+
8977 - name : Set up Python
9078 uses : actions/setup-python@v4
9179 with :
9280 python-version : ' 3.x'
93-
81+
9482 - name : Install MkDocs and dependencies
9583 run : |
9684 python -m pip install --upgrade pip
9785 pip install mkdocs mkdocs-material mike
98-
86+
9987 - name : Extract version from tag
10088 id : version
10189 run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
102-
90+
10391 - name : Create versioned MkDocs config
10492 run : |
10593 bash .github/scripts/create-versioned-mkdocs-config.sh ${{ steps.version.outputs.VERSION }}
106-
94+
10795 - name : Configure Git for mike
10896 run : |
10997 git config user.name "${{ github.repository_owner }}"
11098 git config user.email "${{ github.repository_owner }}@users.noreply.github.com"
111-
99+
112100 - name : Deploy versioned docs
113101 run : |
114102 # Deploy the new version to gh-pages branch
0 commit comments