-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (61 loc) · 2.02 KB
/
run-action.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: run-action
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
run-action:
runs-on: windows-2022
steps:
- name: Copy libraries
shell: cmd
run: |
dir
mkdir files
copy C:\Windows\System32\wmp.dll files
cd files
mkdir subdirectory
copy C:\Windows\System32\wmp.dll subdirectory
- name: Run the action for a single binary
env:
CERTIFICATE: ${{ secrets.CODE_SIGNING_CERTIFICATE }}
CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CERTIFICATE_PASSWORD }}
uses: cognitedata/code-sign-action/@v1.1
with:
path-to-binary: 'files\wmp.dll'
- name: Run the action for all binaries under a folder
env:
CERTIFICATE: ${{ secrets.CODE_SIGNING_CERTIFICATE }}
CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CERTIFICATE_PASSWORD }}
uses: cognitedata/code-sign-action/@v1
with:
path-to-binary: 'files'
options: '-Recurse'
run-action-linux:
runs-on: ubuntu-22.04
steps:
- name: Copy libraries
run: |
ls
mkdir files
wget https://github.com/cognitedata/code-sign-action/raw/0dc0e0fff181f5c2147601d4402d6ce8d64e06ca/test.dll -O files/test.dll
cd files
mkdir subdirectory
cp test.dll subdirectory
- name: Run the action for a single binary
env:
CERTIFICATE: ${{ secrets.CODE_SIGNING_CERTIFICATE }}
CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CERTIFICATE_PASSWORD }}
uses: cognitedata/code-sign-action/@v1
with:
path-to-binary: 'files/test.dll'
- name: Run the action for all binaries under a folder
env:
CERTIFICATE: ${{ secrets.CODE_SIGNING_CERTIFICATE }}
CERTIFICATE_PASSWORD: ${{ secrets.CODE_SIGNING_CERTIFICATE_PASSWORD }}
uses: cognitedata/code-sign-action/@v1
with:
path-to-binary: 'files'
options: '-Recurse'