-
Notifications
You must be signed in to change notification settings - Fork 143
60 lines (58 loc) · 1.48 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
49
50
51
52
53
54
55
56
57
58
59
60
name: release
on:
push:
tags:
- '*'
jobs:
build:
name: build_release
runs-on: windows-latest
strategy:
matrix:
device:
- akershus
- ayn-odin
- beryllium
- cheeseburger
- dipper-old
- dipper
- draco
- dumpling
- enchilada
- equuleus
- fajita
- judyln
- judyp
- judypn
- m1882
- m1892
- nx616j
- olympic
- pafm00
- pd1821
- perseus
- polaris
- sdm845-generic
- skr-a0
- star2qltechn
- trident
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Extract certificate
shell: pwsh
env:
CERTIFICATE: ${{ secrets.CERTIFICATE }}
run: Set-Content -Path ..\drivers.pfx -Value ([Convert]::FromBase64String($env:CERTIFICATE)) -AsByteStream
- name: Package device ${{ matrix.device }}
shell: pwsh
env:
PASSWORD: ${{ secrets.CERTIFICATE_PASSWORD }}
run: .\extract.ps1 -CodeName ${{ matrix.device }} -Certificate ..\drivers.pfx -Password $env:PASSWORD
- name: Create ZIP package
shell: pwsh
run: Compress-Archive -Path ".\output\*" -DestinationPath ${{ matrix.device }}.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.device }}.zip