-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (47 loc) · 1.37 KB
/
Copy pathrelease.yml
File metadata and controls
55 lines (47 loc) · 1.37 KB
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
name: release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
platform: [linux, windows]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
- name: Pre-Download Setup
run: |
mkdir -p Indigo/build
mv assets Indigo
- name: Download Artifact
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
workflow_conclusion: success
name: ${{ matrix.platform }}-binary
path: Indigo/build
- if: matrix.platform == 'linux'
run: |
chmod +x Indigo/build/Indigo
tar -cJvf Indigo-${{ github.ref_name }}-${{ matrix.platform }}.tar.xz Indigo
- if: matrix.platform == 'windows'
run: |
zip -r Indigo-${{ github.ref_name }}-${{ matrix.platform }}.zip Indigo
- if: matrix.platform == 'linux'
uses: softprops/action-gh-release@v1
with:
files: Indigo-${{ github.ref_name }}-${{ matrix.platform }}.tar.xz
draft: true
- if: matrix.platform == 'windows'
uses: softprops/action-gh-release@v1
with:
files: Indigo-${{ github.ref_name }}-${{ matrix.platform }}.zip
draft: true