-
Notifications
You must be signed in to change notification settings - Fork 151
90 lines (90 loc) · 2.97 KB
/
install.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
name: install
run-name: Test install on every OS
on: [push]
jobs:
npm:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: actions/checkout@master
- id: ver
uses: Saionaro/[email protected]
- run: npm i -g how2
- run: how2
- run: how2 decompress tar gz
- run: |
ver=`how2 --version`
echo $ver
if [ $ver != ${{ steps.ver.outputs.version }} ]; then exit 1; fi
- run: how2 --set-token 8b2fee4d-95g3-4e35-b8ea-edede6500533
- run: how2 --get-token
linux-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- id: ver
uses: Saionaro/[email protected]
- run: wget https://github.com/santinic/how2/releases/download/v${{ steps.ver.outputs.version }}/how2-linux-x64.tar.gz
- run: tar xvzf how2-linux-x64.tar.gz
- run: mv how2-linux how2
- run: ./how2
- run: ./how2 decompress tar gz
- run: |
ver=`./how2 --version`
echo $ver
if [ $ver != ${{ steps.ver.outputs.version }} ]; then exit 1; fi
- run: ./how2 --set-token 8b2fee4d-95g3-4e35-b8ea-edede6500533
- run: ./how2 --get-token
deb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- id: ver
uses: Saionaro/[email protected]
- run: wget how2terminal.com/how2.deb
- run: sudo dpkg -i how2.deb
- run: how2
- run: how2 decompress tar gz
- run: |
ver=`how2 --version`
echo $ver
if [ $ver != $latest ]; then exit 1; fi
- run: how2 --set-token 8b2fee4d-95g3-4e35-b8ea-edede6500533
- run: how2 --get-token
brew-tap:
runs-on: macos-12
steps:
- uses: actions/checkout@master
- id: ver
uses: Saionaro/[email protected]
- run: brew tap how2terminal/how2
- run: brew install how2
- run: how2
- run: how2 decompress tar gz
- run: |
ver=`how2 --version`
echo $ver
if [ $ver != ${{ steps.ver.outputs.version }} ]; then exit 1; fi
- run: how2 --set-token 8b2fee4d-95g3-4e35-b8ea-edede6500533
- run: how2 --get-token
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- id: ver
uses: Saionaro/[email protected]
- name: Download and decompress artifact
shell: pwsh
run: |
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile("https://github.com/santinic/how2/releases/download/v${{ steps.ver.outputs.version }}/how2-win.zip", "how2-win.zip")
Expand-Archive -Path .\how2-win.zip .
- run: mv how2-win.exe how2.exe
- name: Without options
run: .\how2
- name: Simple search
run: .\how2 Download file
- run: .\how2 --set-token 8b2fee4d-95g3-4e35-b8ea-edede6500533
- run: .\how2 --get-token