-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (50 loc) · 1.55 KB
/
test-build.yml
File metadata and controls
62 lines (50 loc) · 1.55 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
56
57
58
59
60
61
62
name: Test Build
on:
workflow_dispatch:
inputs:
test_version:
description: 'Test version number (e.g., 1.8.0)'
required: false
default: '0.0.0-test'
jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build plugin
run: pnpm run build
- name: Create release package
run: |
VERSION="${{ github.event.inputs.test_version }}"
VERSION="${VERSION#v}" # Remove 'v' prefix if present
RELEASE_DIR="LetUsReShade"
ZIP_NAME="LetUsReShade_v${VERSION}.zip"
# Create temporary directory structure
mkdir -p "${RELEASE_DIR}"
# Copy necessary files
cp -r dist "${RELEASE_DIR}/"
cp -r defaults "${RELEASE_DIR}/"
cp main.py "${RELEASE_DIR}/"
cp package.json "${RELEASE_DIR}/"
cp plugin.json "${RELEASE_DIR}/"
cp LICENSE "${RELEASE_DIR}/"
cp README.md "${RELEASE_DIR}/"
# Create zip file
zip -r "${ZIP_NAME}" "${RELEASE_DIR}"
echo "✅ Test build complete: ${ZIP_NAME}"
ls -lh "${ZIP_NAME}"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: test-build
path: LetUsReShade_v*.zip
retention-days: 7