mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Merge pull request #7 from jhbruhn/delete-release-artifacts-before-upload
feature: Streamline build pipeline to only run lint and build checks
This commit is contained in:
commit
8c0b893599
1 changed files with 7 additions and 67 deletions
74
.github/workflows/build.yml
vendored
74
.github/workflows/build.yml
vendored
|
|
@ -1,4 +1,4 @@
|
|||
name: Build and Package
|
||||
name: Build and Lint
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
@ -8,8 +8,8 @@ on:
|
|||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-web:
|
||||
name: Build Web Application
|
||||
build-and-lint:
|
||||
name: Build and Lint
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
|
@ -25,68 +25,8 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build web application
|
||||
- name: Run linter
|
||||
run: npm run lint
|
||||
|
||||
- name: Build application
|
||||
run: npm run build
|
||||
|
||||
- name: Upload web build artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: web-build
|
||||
path: dist/
|
||||
retention-days: 7
|
||||
|
||||
build-electron:
|
||||
name: Build Electron - ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version-file: ".node-version"
|
||||
cache: "npm"
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Package Electron app
|
||||
run: npm run package
|
||||
|
||||
- name: Create distributables
|
||||
run: npm run make
|
||||
|
||||
- name: Upload Windows artifacts
|
||||
if: matrix.os == 'windows-latest'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: electron-windows
|
||||
path: |
|
||||
out/make/squirrel.windows/**/*.exe
|
||||
out/make/squirrel.windows/**/*.nupkg
|
||||
retention-days: 30
|
||||
|
||||
- name: Upload macOS artifacts
|
||||
if: matrix.os == 'macos-latest'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: electron-macos
|
||||
path: |
|
||||
out/make/zip/**/*.zip
|
||||
retention-days: 30
|
||||
|
||||
- name: Upload Linux artifacts
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: electron-linux
|
||||
path: |
|
||||
out/make/deb/**/*.deb
|
||||
out/make/rpm/**/*.rpm
|
||||
retention-days: 30
|
||||
|
|
|
|||
Loading…
Reference in a new issue