mirror of
https://github.com/openappsec/openappsec.git
synced 2025-07-15 23:14:44 +03:00
30 lines
881 B
YAML
30 lines
881 B
YAML
name: 'build'
|
|
on: push
|
|
|
|
jobs:
|
|
build-on-aws-instace:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
name: 'check out repository'
|
|
|
|
- name: Build the agent
|
|
run: |
|
|
./scripts/entry.sh agent ubuntu focal
|
|
|
|
- name: upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: openappsec-focal.tar.gz
|
|
path: output/ubuntu/focal/agent/openappsec-focal.tar.gz
|
|
|
|
- name: Create Release
|
|
uses: ncipollo/release-action@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
tag: v.some.tage # ${{ github.ref }} when there's a tag to the push
|
|
name: release with artifact # Release ${{ github.ref }} ${{ github.ref }} when there's a tag to the push
|
|
draft: true
|
|
artifacts: output/ubuntu/focal/agent/openappsec-focal.tar.gz
|