-
-
Notifications
You must be signed in to change notification settings - Fork 12
63 lines (53 loc) · 1.68 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
62
63
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
create-release:
name: Build Release
runs-on: ubuntu-latest
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.repository.default_branch }}
- name: Set env
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install dependencies for InteractionDUI
run: |
cd interactionDUI/dui_source
npm install
- name: Build Vue app for InteractionDUI
run: |
cd interactionDUI/dui_source
npm run build
- name: Bundle files
run: |
mkdir -p ./temp/interactionMenu
mkdir -p ./temp/interactionDUI
mkdir -p ./temp/interactionRenderer
cp -r ./interactionDUI/dui ./temp/interactionDUI/
cp ./interactionDUI/fxmanifest.lua ./temp/interactionDUI
cp ./interactionDUI/core.client.lua ./temp/interactionDUI
cp -r ./interactionMenu ./temp
cp -r ./interactionRenderer ./temp
- name: Zip files
run: |
cd ./temp && zip -r ../interactionMenu.zip ./
- name: Create Release
uses: "marvinpinto/action-automatic-releases@v1.2.1"
id: auto_release
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
title: ${{ env.RELEASE_VERSION }}
prerelease: false
files: interactionMenu.zip
env:
CI: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}