summaryrefslogtreecommitdiff
path: root/.github/workflows/release.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r--.github/workflows/release.yml40
1 files changed, 40 insertions, 0 deletions
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 @@
1name: Release
2
3on:
4 push:
5 tags:
6 - '*'
7
8jobs:
9
10 release:
11 name: Release
12 runs-on: ubuntu-latest
13
14 steps:
15 - uses: actions/checkout@v3
16
17 - name: Set up Go
18 uses: actions/setup-go@v3
19 with:
20 go-version: '^1.18'
21
22 # apt repos don't have YARA v4.2, install it from git
23 - name: Install YARA
24 run: |
25 git clone --depth 1 https://github.com/virustotal/yara.git
26 cd yara
27 bash ./build.sh
28 sudo make install
29 cd ..
30
31 - name: Build
32 run: make
33
34 - name: Create release
35 uses: ncipollo/release-action@v1
36 with:
37 artifacts: "php-malware-finder"
38 token: ${{ secrets.GITHUB_TOKEN }}
39 allowUpdates: true
40 omitBody: true