-
-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (47 loc) · 1.31 KB
/
build.yml
File metadata and controls
55 lines (47 loc) · 1.31 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: Build Plugin
on:
workflow_dispatch:
inputs:
version:
description: 'Version tag (e.g., 1.0.0 or beta-1)'
required: true
type: string
workflow_call:
inputs:
version:
description: 'Version tag (e.g., 1.0.0 or beta-1)'
required: true
type: string
outputs:
artifact-name:
description: "Name of the uploaded artifact"
value: SteamHunters-plugin-${{ inputs.version }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: |
bun install
- name: Build and create zip
run: bun helpers/build_zip.ts
env:
RELEASE_VERSION: ${{ inputs.version }}
- name: Extract zip for artifact
run: |
mkdir -p temp_artifact
unzip "build/Extendium-plugin-${{ inputs.version }}.zip" -d temp_artifact/
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: Extendium-plugin-${{ inputs.version }}
path: temp_artifact/*
if-no-files-found: error
overwrite: true
include-hidden-files: true