generated from SergeyLadanov/Cmake_Template
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.44 KB
/
release.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
name: Release project
on:
push:
tags:
- '*'
jobs:
build:
name: Building project
uses: ./.github/workflows/build.yml
upload:
name: Uploading files
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ZIP files
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: 'release.zip'
directory: 'Components'
- name: Download build artifatcs
uses: actions/download-artifact@v3
with:
name: Build_Output
- name: List of files
run: ls
- name: Upload lib source files to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release.zip
asset_name: NVS_Lib_$tag.zip
tag: ${{ github.ref }}
- name: Upload Windows executable file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: NVS_Test.exe
asset_name: NVS_Test_amd64_Windows_$tag.exe
tag: ${{ github.ref }}
- name: Upload Linux executable file to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: NVS_Test
asset_name: NVS_Test_amd64_Linux_$tag
tag: ${{ github.ref }}