-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scan final build results using clamscan
- Loading branch information
Showing
1 changed file
with
35 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,10 +91,6 @@ jobs: | |
uses: vegardit/fast-apt-mirror.sh@v1 | ||
|
||
|
||
- name: Start ClamAV daemon clamd | ||
uses: toblux/[email protected] | ||
|
||
|
||
- name: Git checkout | ||
uses: actions/checkout@v4 # https://github.com/actions/checkout | ||
|
||
|
@@ -259,6 +255,20 @@ jobs: | |
concurrency: publish-latest-release # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idconcurrency | ||
|
||
steps: | ||
- name: "Show: GitHub context" | ||
env: | ||
GITHUB_CONTEXT: ${{ toJSON(github) }} | ||
run: echo $GITHUB_CONTEXT | ||
|
||
|
||
- name: Show environment variables | ||
run: env | sort | ||
|
||
|
||
- name: Configure Fast APT Mirror | ||
uses: vegardit/fast-apt-mirror.sh@v1 | ||
|
||
|
||
- name: Git checkout | ||
# only required by "gh release create" to prevent "fatal: Not a git repository" | ||
uses: actions/checkout@v4 #https://github.com/actions/checkout | ||
|
@@ -278,6 +288,27 @@ jobs: | |
uses: actions/download-artifact@v4 | ||
|
||
|
||
- name: Rename build artifacts | ||
run: | | ||
mv artifacts-macos-13/kleinanzeigen-bot kleinanzeigen-bot-darwin-amd64 | ||
mv artifacts-macos-latest/kleinanzeigen-bot kleinanzeigen-bot-darwin-arm64 | ||
mv artifacts-ubuntu-latest/kleinanzeigen-bot kleinanzeigen-bot-linux-amd64 | ||
mv artifacts-windows-latest/kleinanzeigen-bot-uncompressed.exe kleinanzeigen-bot-windows-amd64-uncompressed.exe | ||
mv artifacts-windows-latest/kleinanzeigen-bot.exe kleinanzeigen-bot-windows-amd64.exe | ||
- name: Install ClamAV | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clamav | ||
sudo systemctl stop clamav-freshclam.service | ||
sudo freshclam | ||
- name: Scan build artifacts | ||
run: clamscan kleinanzeigen-* | ||
|
||
|
||
- name: "Delete previous 'latest' release" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -294,12 +325,6 @@ jobs: | |
run: | | ||
set -eux | ||
mv artifacts-macos-13/kleinanzeigen-bot kleinanzeigen-bot-darwin-amd64 | ||
mv artifacts-macos-latest/kleinanzeigen-bot kleinanzeigen-bot-darwin-arm64 | ||
mv artifacts-ubuntu-latest/kleinanzeigen-bot kleinanzeigen-bot-linux-amd64 | ||
mv artifacts-windows-latest/kleinanzeigen-bot-uncompressed.exe kleinanzeigen-bot-windows-amd64-uncompressed.exe | ||
mv artifacts-windows-latest/kleinanzeigen-bot.exe kleinanzeigen-bot-windows-amd64.exe | ||
# https://cli.github.com/manual/gh_release_create | ||
GH_DEBUG=1 gh release create "$RELEASE_NAME" \ | ||
--title "$RELEASE_NAME" \ | ||
|