generated from aserto-dev/policy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1005 Bytes
/
build-release-policy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: build-release
on:
workflow_dispatch:
push:
# tags:
# - '*'
jobs:
release_policy:
runs-on: ubuntu-latest
name: build
steps:
- uses: actions/checkout@v2
- name: Build Policy
id: aserto-build
uses: aserto-dev/aserto-build-action@v2
with:
source_path: src
target_path: build
target_file: bundle.tar.gz
revision: "$GITHUB_SHA"
verbose: true
- name: Release Policy
id: release
uses: xresloader/upload-to-github-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "build/bundle.tar.gz"
tags: true
draft: false
verbose: true
- name: Push Policy
id: aserto-push
uses: aserto-dev/aserto-push-action@v2
env:
ASERTO_PUSH_KEY: ${{ secrets.ASERTO_PUSH_KEY }}
with:
bundle: build/bundle.tar.gz
release_id: ${{ steps.release.outputs.release_id }}
verbose: true