Editor:
- Toggles (Tiptap Details). Open state is per reader, not saved.
- Embeds for YouTube, Vimeo, Loom, Figma, CodePen, Spotify, Google Docs
and Maps, in sandboxed frames. Other addresses become link cards.
- Link cards with title, description and picture read by docwell-server
(GET /link-preview). The fetcher refuses private, loopback, link-local
and CGNAT addresses after DNS resolution, redirects included.
- Block links: a margin button gives a block a short id and copies
/p/<id>#b-<block>. Opening one jumps to the block and flashes it.
- Markdown, HTML and PDF exports handle the new blocks; HTML import reads
<details> as a toggle.
Pages and spaces:
- History gets a Changes view: block and word diff against the previous
version or the page as it is now.
- Archive: archived pages leave the tree and become read-only but stay
readable; a space's Archive lists them with Unarchive. New migration
(pages.archived_at) and page.archived / page.unarchived webhook events.
- Full space export (GET /spaces/{id}/export): a zip of Markdown or HTML
files with subpages in folders, an index, and attachments under _files/.
Links between exported pages and to attachments become relative paths.
Desktop 1.0:
- Several servers, each with its own sign-in; old settings files carry over.
- Session tokens in the system keychain (go-keyring), moved out of
localStorage on first start.
- Native menu bar (File, Edit, View, Window, Help) with a Server submenu.
- docwell:// links may point at a block.
- Release workflow builds Windows NSIS, macOS DMG and Linux deb, rpm and
AppImage installers and attaches them to the release;
build/set-version.mjs stamps the version into their metadata.
Not yet run: the release workflow, the desktop menus by eye, and macOS or
Linux builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
159 lines
5.3 KiB
YAML
159 lines
5.3 KiB
YAML
# Publishes a release: push a tag like v0.1.0.
|
|
# Images go to ghcr.io/<repository owner>/<name>, for linux/amd64 and
|
|
# linux/arm64, tagged with the version (0.1.0, 0.1) and latest.
|
|
# Desktop installers (Windows NSIS, macOS DMG, Linux deb, rpm and AppImage)
|
|
# are attached to the GitHub release for the tag.
|
|
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags: ["v*"]
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
description: Version to stamp into the binaries (e.g. 0.1.0-rc1); images are tagged with it
|
|
required: true
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
|
|
jobs:
|
|
images:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- name: docwell-db
|
|
context: Database
|
|
dockerfile: Database/Dockerfile
|
|
- name: docwell-server
|
|
context: .
|
|
dockerfile: Server/Dockerfile
|
|
- name: docwell-web
|
|
context: .
|
|
dockerfile: Web-App/Dockerfile
|
|
- name: docwell
|
|
context: .
|
|
dockerfile: Docker-AIO/Dockerfile
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
|
|
- name: Version
|
|
id: version
|
|
run: |
|
|
v="${{ inputs.version || github.ref_name }}"
|
|
echo "value=${v#v}" >> "$GITHUB_OUTPUT"
|
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
- uses: docker/setup-buildx-action@v3
|
|
- uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- id: meta
|
|
uses: docker/metadata-action@v5
|
|
with:
|
|
images: ghcr.io/${{ github.repository_owner }}/${{ matrix.name }}
|
|
tags: |
|
|
type=semver,pattern={{version}},value=${{ steps.version.outputs.value }}
|
|
type=semver,pattern={{major}}.{{minor}},value=${{ steps.version.outputs.value }}
|
|
type=raw,value=${{ steps.version.outputs.value }},enable=${{ github.event_name == 'workflow_dispatch' }}
|
|
type=raw,value=latest,enable=${{ github.event_name == 'push' && !contains(github.ref_name, '-') }}
|
|
labels: |
|
|
org.opencontainers.image.title=${{ matrix.name }}
|
|
org.opencontainers.image.licenses=AGPL-3.0-or-later
|
|
|
|
- uses: docker/build-push-action@v6
|
|
with:
|
|
context: ${{ matrix.context }}
|
|
file: ${{ matrix.dockerfile }}
|
|
platforms: linux/amd64,linux/arm64
|
|
push: true
|
|
build-args: VERSION=${{ steps.version.outputs.value }}
|
|
tags: ${{ steps.meta.outputs.tags }}
|
|
labels: ${{ steps.meta.outputs.labels }}
|
|
cache-from: type=gha,scope=${{ matrix.name }}
|
|
cache-to: type=gha,mode=max,scope=${{ matrix.name }}
|
|
|
|
desktop:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: windows-latest
|
|
task: windows:package
|
|
files: Desktop-App/bin/*-installer.exe
|
|
- os: macos-latest
|
|
task: darwin:package:dmg
|
|
files: Desktop-App/bin/*.dmg
|
|
- os: ubuntu-latest
|
|
task: linux:create:deb linux:create:rpm linux:create:appimage
|
|
files: |
|
|
Desktop-App/bin/*.deb
|
|
Desktop-App/bin/*.rpm
|
|
Desktop-App/bin/*.AppImage
|
|
runs-on: ${{ matrix.os }}
|
|
permissions:
|
|
contents: write
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
env:
|
|
GOWORK: "off"
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- uses: actions/setup-go@v6
|
|
with:
|
|
go-version: "1.26"
|
|
- uses: actions/setup-node@v5
|
|
with:
|
|
node-version: 24
|
|
cache: npm
|
|
|
|
- name: Version
|
|
id: version
|
|
run: |
|
|
v="${{ inputs.version || github.ref_name }}"
|
|
echo "value=${v#v}" >> "$GITHUB_OUTPUT"
|
|
|
|
- name: Linux packaging dependencies
|
|
if: runner.os == 'Linux'
|
|
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libfuse2 rpm
|
|
- name: NSIS
|
|
if: runner.os == 'Windows'
|
|
run: choco install nsis -y --no-progress && echo "C:/Program Files (x86)/NSIS" >> "$GITHUB_PATH"
|
|
- name: Wails CLI
|
|
run: go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
|
|
|
|
- run: npm ci
|
|
- name: Stamp the version
|
|
working-directory: Desktop-App
|
|
run: node build/set-version.mjs "${{ steps.version.outputs.value }}"
|
|
|
|
# The update feed and its ed25519 public key are repository variables;
|
|
# without them the build never updates itself (see updates.go).
|
|
- name: Package
|
|
working-directory: Desktop-App
|
|
run: |
|
|
flags="-X main.version=${{ steps.version.outputs.value }}"
|
|
flags="$flags -X main.docsURL=https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/"
|
|
if [ -n "${{ vars.DESKTOP_UPDATE_MANIFEST_URL }}" ]; then
|
|
flags="$flags -X main.updateManifestURL=${{ vars.DESKTOP_UPDATE_MANIFEST_URL }} -X main.updatePublicKey=${{ vars.DESKTOP_UPDATE_PUBLIC_KEY }}"
|
|
fi
|
|
wails3 task ${{ matrix.task }} EXTRA_LDFLAGS="$flags"
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: desktop-${{ runner.os }}
|
|
path: ${{ matrix.files }}
|
|
- name: Attach to the release
|
|
if: github.event_name == 'push'
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: ${{ matrix.files }}
|