-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (39 loc) · 1.25 KB
/
release.yml
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
47
48
name: Release
on:
push:
branches:
- enable-github-actions
jobs:
release:
permissions: write-all
runs-on: ubuntu-20.04
strategy:
matrix:
package_dir:
- cos-csi-mounter
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: "go"
- name: Run Unit Tests for cos csi mounter
run: sudo make ut-coverage -C ${{ matrix.package_dir }}
- name: Build Debian Package for cos csi mounter container
run: |
cd ${{ matrix.package_dir }}
make packages
- name: Latest Version (Tag and Release)
id: release
if: contains(env, 'publish')
uses: softprops/action-gh-release@v1
with:
files: |
/home/runner/work/ibm-object-csi-driver/ibm-object-csi-driver/cos-csi-mounter/cos-csi-mounter-latest.tar.gz
/home/runner/work/ibm-object-csi-driver/ibm-object-csi-driver/cos-csi-mounter/cos-csi-mounter-latest.tar.gz.sha256
tag_name: v0.0.0
name: v0.0.0
body: CSR generated with SHA1 is not supported to get certs using Metadata.
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3