-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (67 loc) · 3.35 KB
/
installation.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
name: "Installation"
on:
push:
branches:
- main
jobs:
install:
name: "Install latest"
runs-on: ubuntu-latest
steps:
- name: Import gpg key(s) defined in vars.PUBLIC_GPG_KEYS_WE_TRUST and secrets.PUBLIC_GPG_KEYS_WE_TRUST
run: |
gpg --import - <<< "${{ vars.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \
|| (echo "could not import GPG keys via vars.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \
false || gpg --import - <<< "${{ secrets.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \
|| (echo "could not import GPG keys via secrets.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \
false || "${success:-false}" && echo "was able to import GPGs either via vars or secrets (or via both -- see above)"
- uses: actions/checkout@v4
- name: Check it works
run: |
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX)
mkdir -p "$tmpDir"
currentDir=$(pwd)
cd "$tmpDir"
"$currentDir/install.sh"
- name: run self-update
run: gt self-update --force true
installDoc:
name: "Install.doc.sh latest"
runs-on: ubuntu-latest
steps:
- name: Import gpg key(s) defined in vars.PUBLIC_GPG_KEYS_WE_TRUST and secrets.PUBLIC_GPG_KEYS_WE_TRUST
run: |
gpg --import - <<< "${{ vars.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \
|| (echo "could not import GPG keys via vars.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \
false || gpg --import - <<< "${{ secrets.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \
|| (echo "could not import GPG keys via secrets.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \
false || "${success:-false}" && echo "was able to import GPGs either via vars or secrets (or via both -- see above)"
- uses: actions/checkout@v4
- name: Check it works
run: ./install.doc.sh
- name: run self-update
run: gt self-update --force true
installOld:
strategy:
matrix:
tag: [v0.10.2, v0.11.0, v0.12.0, v0.13.3, v0.14.0, v0.15.0, v0.16.0, v0.17.0, v0.17.1, v0.17.3, v0.17.4, v0.18.0, v0.19.0, v1.0.0, v1.0.1, v1.0.2, v1.0.3]
runs-on: ubuntu-latest
name: 'self-update from ${{matrix.tag}}'
steps:
- name: Import gpg key(s) defined in vars.PUBLIC_GPG_KEYS_WE_TRUST and secrets.PUBLIC_GPG_KEYS_WE_TRUST
run: |
gpg --import - <<< "${{ vars.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \
|| (echo "could not import GPG keys via vars.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \
false || gpg --import - <<< "${{ secrets.PUBLIC_GPG_KEYS_WE_TRUST }}" && success=true \
|| (echo "could not import GPG keys via secrets.PUBLIC_GPG_KEYS_WE_TRUST -- maybe it's not defined"; exit 1) && \
false || "${success:-false}" && echo "was able to import GPGs either via vars or secrets (or via both -- see above)"
- uses: actions/checkout@v4
- name: install ${{ matrix.tag }}
run: |
tmpDir=$(mktemp -d -t gt-download-install-XXXXXXXXXX)
mkdir -p "$tmpDir"
currentDir=$(pwd)
cd "$tmpDir"
"$currentDir/install.sh" -t ${{ matrix.tag }}
- name: run self-update
run: gt self-update --force true