|
|
|
|
@ -92,7 +92,16 @@ jobs:
|
|
|
|
|
asset_content_type: application/zip # required by GitHub API
|
|
|
|
|
nightly-server:
|
|
|
|
|
name: Deploy server nightly
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
strategy:
|
|
|
|
|
fail-fast: false
|
|
|
|
|
matrix:
|
|
|
|
|
arch: [x64, arm64]
|
|
|
|
|
include:
|
|
|
|
|
- arch: x64
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
- arch: arm64
|
|
|
|
|
runs-on: ubuntu-24.04-arm
|
|
|
|
|
runs-on: ${{ matrix.runs-on }}
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
|
- name: Set up node & dependencies
|
|
|
|
|
@ -102,22 +111,21 @@ jobs:
|
|
|
|
|
cache: "npm"
|
|
|
|
|
- name: Install dependencies
|
|
|
|
|
run: npm ci
|
|
|
|
|
- name: Run Linux server build (x86_64)
|
|
|
|
|
- name: Run Linux server build
|
|
|
|
|
env:
|
|
|
|
|
MATRIX_ARCH: ${{ matrix.arch }}
|
|
|
|
|
run: |
|
|
|
|
|
npm run update-build-info
|
|
|
|
|
npm run ci-update-nightly-version
|
|
|
|
|
./bin/build-server.sh
|
|
|
|
|
- name: Prepare artifacts
|
|
|
|
|
if: runner.os != 'windows'
|
|
|
|
|
run: |
|
|
|
|
|
mkdir -p upload
|
|
|
|
|
file=$(find dist -name '*.tar.xz' -print -quit)
|
|
|
|
|
cp "$file" "upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz"
|
|
|
|
|
cp "$file" "upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz"
|
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
|
with:
|
|
|
|
|
name: TriliumNextNotes linux server x64
|
|
|
|
|
path: upload/TriliumNextNotes-linux-x64-${{ github.ref_name }}.tar.xz
|
|
|
|
|
overwrite: true
|
|
|
|
|
name: TriliumNextNotes linux server ${{ matrix.arch }}
|
|
|
|
|
path: upload/TriliumNextNotes-linux-${{ matrix.arch }}-${{ github.ref_name }}.tar.xz
|
|
|
|
|
|
|
|
|
|
- name: Deploy release
|
|
|
|
|
uses: WebFreak001/deploy-nightly@v3.2.0
|
|
|
|
|
|