-
-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (36 loc) · 1.23 KB
/
Copy pathbuild-linux.yml
File metadata and controls
46 lines (36 loc) · 1.23 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
name: Build Linux App
on:
workflow_call:
concurrency:
group: linux-build-${{ github.ref_name }}
cancel-in-progress: true
jobs:
build-linux:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- name: Run tests
run: npm test
- name: Build AppImage
run: npm run linux
- name: Get version from package.json
id: version
run: |
APP_VERSION=$(node -p "require('./package.json').version")
echo "version=$APP_VERSION" >> $GITHUB_OUTPUT
echo "App version: $APP_VERSION"
- name: List dist contents for debugging
run: |
echo "Contents of dist directory:"
ls -la dist/ || echo "dist directory not found"
- name: Upload AppImage
uses: actions/upload-artifact@v4
with:
name: microbot-launcher-linux-latest
path: dist/*.AppImage