From 48936efa96ae17295be4e0a71be3294f0ec6aef8 Mon Sep 17 00:00:00 2001 From: Mathieu Deous Date: Mon, 2 May 2022 20:18:23 +0200 Subject: Make application go-install-able and create a docker image --- .github/workflows/release.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yml (limited to '.github/workflows/release.yml') diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6b1647a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + + release: + name: Release + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '^1.18' + + # apt repos don't have YARA v4.2, install it from git + - name: Install YARA + run: | + git clone --depth 1 https://github.com/virustotal/yara.git + cd yara + bash ./build.sh + sudo make install + cd .. + + - name: Build + run: make + + - name: Create release + uses: ncipollo/release-action@v1 + with: + artifacts: "php-malware-finder" + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + omitBody: true -- cgit v1.3