-
Notifications
You must be signed in to change notification settings - Fork 0
133 lines (129 loc) · 4.49 KB
/
release_rian_snapshot.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: Release artifacts from Querent Production repository
on:
push:
tags:
- "v*"
jobs:
release-querent-binary-artifacts:
name: Build ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
[
x86_64-apple-darwin,
aarch64-apple-darwin,
x86_64-unknown-linux-gnu,
x86_64-pc-windows-msvc.exe,
]
steps:
- name: Extract asset version
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo "ASSET_FULL_NAME=rian-${{ env.ASSET_VERSION }}-${{ matrix.target }}" >> $GITHUB_ENV
- uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/querent"
version: "tags/${{ env.ASSET_VERSION }}"
file: ${{ env.ASSET_FULL_NAME }}.tar.gz
target: ${{ env.ASSET_FULL_NAME }}.tar.gz
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Upload binaries assets to GitHub Release
uses: quickwit-inc/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: ${{ env.ASSET_FULL_NAME }}.tar.gz
overwrite: true
tag_name: ${{ env.ASSET_VERSION }}
release-querent-rian-installers:
name: Release Linux, MacOs, Windows Installers
runs-on: ubuntu-latest
steps:
- name: Extract asset version
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- name: Download Windows Installer(s)
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/querent"
version: "tags/${{ env.ASSET_VERSION }}"
file: ".*\\.msi"
target: "rian/"
regex: true
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Download Linux Installer(s)
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/querent"
version: "tags/${{ env.ASSET_VERSION }}"
file: ".*\\.AppImage"
target: "rian/"
regex: true
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Download MacOS Installer(s)
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/querent"
version: "tags/${{ env.ASSET_VERSION }}"
file: ".*\\.tar.gz"
target: "rian/"
regex: true
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Download All .sig files
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/querent"
version: "tags/${{ env.ASSET_VERSION }}"
file: ".*\\.sig"
target: "rian/"
regex: true
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: Download update.json
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/querent"
version: "tags/${{ env.ASSET_VERSION }}"
file: "update.json"
target: "rian/update.json"
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
- name: LS rian/
run: ls rian/
- name: Upload Windows MSI to GitHub Release
uses: quickwit-inc/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: rian/*.msi
overwrite: true
tag_name: ${{ env.ASSET_VERSION }}
- name: Upload Linux AppImages to GitHub Release
uses: quickwit-inc/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: rian/*.AppImage
overwrite: true
tag_name: ${{ env.ASSET_VERSION }}
- name: Upload MacOS Binaries to GitHub Release
uses: quickwit-inc/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: rian/*.tar.gz
overwrite: true
tag_name: ${{ env.ASSET_VERSION }}
- name: Upload Signature Files to GitHub Release
uses: quickwit-inc/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: rian/*.sig
overwrite: true
tag_name: ${{ env.ASSET_VERSION }}
- name: Upload update.json to GitHub Release
uses: quickwit-inc/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: rian/update.json
overwrite: true
tag_name: ${{ env.ASSET_VERSION }}