mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Remove client
This commit is contained in:
54
.github/workflows/ci.yml
vendored
54
.github/workflows/ci.yml
vendored
@@ -33,60 +33,6 @@ jobs:
|
||||
- name: Build and test
|
||||
run: mvn -B verify
|
||||
|
||||
electron-build:
|
||||
timeout-minutes: 10
|
||||
name: Electron packages (${{ matrix.os }})
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
build-command: npx electron-builder --linux AppImage --publish never
|
||||
artifact-name: electron-linux
|
||||
- os: windows-latest
|
||||
build-command: npx electron-builder --win nsis --publish never
|
||||
artifact-name: electron-windows
|
||||
- os: macos-latest
|
||||
build-command: npx electron-builder --mac --publish never
|
||||
artifact-name: electron-macos
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
lfs: true
|
||||
|
||||
- name: Set up Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: npm
|
||||
cache-dependency-path: package-lock.json
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
|
||||
- name: Build Electron bundles
|
||||
run: ${{ matrix.build-command }}
|
||||
|
||||
- name: Smoke test AppImage
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: |
|
||||
chmod +x dist/*.AppImage
|
||||
./dist/*.AppImage --appimage-extract
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y xvfb
|
||||
cd squashfs-root
|
||||
APPDIR="$(pwd)" xvfb-run ./AppRun --no-sandbox
|
||||
|
||||
- name: Upload Electron artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.artifact-name }}
|
||||
path: |
|
||||
dist/*.AppImage
|
||||
dist/*.exe
|
||||
dist/*.dmg
|
||||
|
||||
docker:
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
41
.github/workflows/release.yml
vendored
41
.github/workflows/release.yml
vendored
@@ -1,41 +0,0 @@
|
||||
name: Manual Release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
release:
|
||||
name: Release (${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
- os: ubuntu-latest
|
||||
args: --linux AppImage
|
||||
- os: windows-latest
|
||||
args: --win nsis
|
||||
- os: macos-latest
|
||||
args: --mac
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
lfs: true
|
||||
- name: Set up Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
cache: npm
|
||||
- name: Install deps
|
||||
run: npm ci
|
||||
- name: Verify version is set
|
||||
run: |
|
||||
node -e "process.exit(require('./package.json').version ? 0 : 1)"
|
||||
- name: Build + publish
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
npx electron-builder ${{ matrix.args }} --publish always
|
||||
Reference in New Issue
Block a user