-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (35 loc) · 1.14 KB
/
make-link-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
name: Create Dyalog Link Release and Upload Assets
# Trigger: push of tag starting with 'v'
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Extract tag name
run: echo "REF_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Prepare Assets
run: |
mkdir -p build
cp -r StartupSession build/StartupSession
cd build
zip -r link-${{ env.REF_NAME }}.zip StartupSession
cd ..
cp -r qse/StartupSession/Dyalog build/StartupSession
cd build
zip -r link-${{ env.REF_NAME }}-v182.zip StartupSession
- name: Create and Upload Release
uses: softprops/action-gh-release@v1
with:
name: ${{ env.REF_NAME }}
draft: false # Note: change this to false when fully operational
prerelease: false # Note: change this to false when fully operational
files: ./build/link-${{ env.REF_NAME }}.zip, ./build/link-${{ env.REF_NAME }}-v182.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}