-
Notifications
You must be signed in to change notification settings - Fork 41
69 lines (56 loc) · 2.39 KB
/
autorelease.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
61
62
63
64
65
66
67
68
69
name: Release
on:
push:
tags: ["v[0-9]+.[0-9]+.[0-9]+"]
branches: ["master"]
jobs:
build-dll:
name: Build and publish tagged release
if: startsWith( github.ref, 'refs/tags/v')
runs-on: windows-2019
timeout-minutes: 10
steps:
- name: Download Tools
run: |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Verbose -Uri https://github.com/moloch--/minisign/releases/download/v0.2.1/minisign.exe -OutFile minisign.exe
ls
- name: checkout code
uses: actions/checkout@v3
- name: setup-msbuild
uses: microsoft/[email protected]
with:
msbuild-architecture: x64
- name: build_x64
run: "msbuild -p:Configuration=Release -p:Platform=x64 SliverKeylogger.sln"
- name: setup-msbuild
uses: microsoft/[email protected]
with:
msbuild-architecture: x86
- name: build_x86
run: "msbuild -p:Configuration=Release -p:Platform=x86 SliverKeylogger.sln"
- name: make package
run: |
mkdir raw_keylogger
copy bin\\SliverKeylogger.x86.dll raw_keylogger\\SliverKeylogger.x86.dll
copy bin\\SliverKeylogger.x64.dll raw_keylogger\\SliverKeylogger.x64.dll
copy extension.json raw_keylogger\\extension.json
tar -czvf raw_keylogger.tar.gz raw_keylogger
- name: sign package
run: |
Write-Output "${{ secrets.MINISIGN_PRIVATE_KEY }}" > minisign.key
$Content1 = Get-Content -Path ./raw_keylogger/extension.json
$Bytes = [System.Text.Encoding]::UTF8.GetBytes($Content1)
$Encoded = [System.Convert]::ToBase64String($Bytes)
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Verbose -Uri https://github.com/moloch--/minisign/releases/download/v0.2.1/minisign.exe -OutFile minisign.exe
ls
.\minisign.exe -s minisign.key -S -m raw_keylogger.tar.gz -t "$Encoded" -x raw_keylogger.minisig
- name: "Publish Release"
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: |
raw_keylogger.minisig
raw_keylogger.tar.gz