Skip to content

Commit 32d9fd4

Browse files
authored
Merge pull request #1 from riven-labs/linux-build
add GitHub Actions workflow for building and releasing Linux AppImage
2 parents 0a2f1fa + d3d15b2 commit 32d9fd4

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-linux:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4.2.2
17+
- name: Set up Docker Buildx
18+
uses: docker/setup-buildx-action@v3.10.0
19+
- name: Get version
20+
id: get_version
21+
run: |
22+
echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
23+
- name: Build Linux
24+
run: DOCKER_BUILDKIT=1 docker build . -f Dockerfile --output build
25+
- name: Release
26+
uses: softprops/action-gh-release@v2.2.1
27+
with:
28+
tag_name: ${{ env.VERSION }}
29+
generate_release_notes: true
30+
files: |
31+
./build/wartlock.AppImage

0 commit comments

Comments
 (0)