forked from Jexactyl/Jexactyl
-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (29 loc) · 1.18 KB
/
release.yaml
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
name: Build and Release
on:
workflow_dispatch: # Allows manual triggering of the workflow
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16' # Change to your required Node.js version
- name: Install dependencies
run: yarn install --frozen-lockfile # Use Yarn to install dependencies
- name: Build the project
run: yarn build:production # Adjust this command based on your build process
- name: Create release directory
run: mkdir -p release/kokofixcomputers
- name: Package the build into a tar file
run: |
TAR_FILE="release/kokofixcomputers/panel.tar.gz" # Set the desired filename here
tar -czf "$TAR_FILE" . # The dot (.) indicates to include everything in the current directory
echo "Release created at $TAR_FILE"
- name: Upload release artifact
uses: actions/upload-artifact@v3
with:
name: release-artifact
path: release/kokofixcomputers/panel.tar.gz # Update to match the new filename