Initial Coworker app scaffold
This commit is contained in:
47
.gitea/workflows/build.yml
Normal file
47
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
|
||||
- name: Test
|
||||
run: npm run test
|
||||
|
||||
- name: Build
|
||||
run: npm run build
|
||||
|
||||
- name: Build Windows installer
|
||||
run: |
|
||||
docker run --rm \
|
||||
-v "$PWD":/project \
|
||||
-w /project \
|
||||
electronuserland/builder:wine \
|
||||
/bin/bash -lc "npm run package:win"
|
||||
|
||||
- name: Checksums
|
||||
run: |
|
||||
cd release
|
||||
sha256sum Coworker-Setup-*.exe > SHA256SUMS.txt
|
||||
|
||||
- name: Upload installer artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: coworker-windows-installer
|
||||
path: |
|
||||
release/Coworker-Setup-*.exe
|
||||
release/SHA256SUMS.txt
|
||||
Reference in New Issue
Block a user