-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.33 KB
/
release_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
name: Release artifacts from Quester repository
on:
push:
tags:
- "v*"
jobs:
release-macos-artifacts:
name: Build ${{ matrix.target }}
runs-on: macos-latest
strategy:
matrix:
target: [x86_64-apple-darwin, aarch64-apple-darwin, 'x86_64-unknown-linux-gnu']
steps:
- name: Extract asset version
run: echo "ASSET_VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
- run: echo "ASSET_FULL_NAME=querent-${{ env.ASSET_VERSION }}-${{ matrix.target }}" >> $GITHUB_ENV
- uses: dsaltares/fetch-gh-release-asset@master
with:
repo: "querent-ai/quester"
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 Release Artifacts for ${{ matrix.target }} and version ${{ github.ref }}
uses: actions/upload-artifact@v2
with:
name: ${{ env.ASSET_FULL_NAME }}
path: ${{ env.ASSET_FULL_NAME }}.tar.gz
- name: Upload archive
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 }}