Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
212c996
try again to have only relevant Assets for a release
StableLlama Mar 28, 2026
3b5229a
Merge pull request #130 from StableLlamaAI/optimize_release_action
StableLlama Mar 28, 2026
ba4f479
additional try
StableLlama Mar 28, 2026
b442500
Merge pull request #131 from StableLlamaAI/optimize_release_action
StableLlama Mar 28, 2026
bfecb8b
Provide one relevant *.exe
StableLlama Mar 28, 2026
7b54d25
Merge pull request #132 from StableLlamaAI/optimize_release_action
StableLlama Mar 28, 2026
52897ad
only publish final applications
StableLlama Mar 28, 2026
76ddb37
Merge pull request #133 from StableLlamaAI/optimize_release_action
StableLlama Mar 28, 2026
d00b78a
try to fix package creation
StableLlama Mar 28, 2026
a3dc891
Merge pull request #134 from StableLlamaAI/optimize_release_action
StableLlama Mar 28, 2026
972c88a
try to fix Docker build and remove node version warnings
StableLlama Mar 29, 2026
c5f3867
Merge pull request #135 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
2e899ef
update Actions versions
StableLlama Mar 29, 2026
77ca8ab
Merge pull request #136 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
65c919c
try t oremove node version warnings
StableLlama Mar 29, 2026
10642f3
Merge pull request #137 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
55dbdaf
Better Docker tag handling
StableLlama Mar 29, 2026
1cc941c
Merge pull request #138 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
1690a24
try better Docker tag handling
StableLlama Mar 29, 2026
d9d7d55
Merge pull request #139 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
56eb6f7
next try for better Docker tags
StableLlama Mar 29, 2026
0df3693
Merge pull request #140 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
a514bdf
trying again
StableLlama Mar 29, 2026
a30ccda
Merge pull request #141 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
f719fbd
next try, lower case
StableLlama Mar 29, 2026
048c8a1
Merge pull request #142 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
111aefe
try again
StableLlama Mar 29, 2026
08cbf2b
Merge pull request #143 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
43c00e7
Next try to build Docker package
StableLlama Mar 29, 2026
0cfbbb2
Merge pull request #144 from StableLlamaAI/optimize_release_action
StableLlama Mar 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 37 additions & 10 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: Build Docker Image

on:
workflow_call:
inputs:
version:
description: Docker image tag to publish alongside latest.
required: true
type: string
release:
# Run this workflow when a release or pre-release is published
types: [published, released, prereleased]
# Use the release tag as the single source of truth for published image tags.
types: [published, prereleased]

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

Expand All @@ -19,25 +24,47 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Prepare image name
id: image
run: |
IMAGE_NAME_LOWER="$(echo "${{ env.IMAGE_NAME }}" | tr '[:upper:]' '[:lower:]')"
echo "name=${IMAGE_NAME_LOWER}" >> "$GITHUB_OUTPUT"
echo "uri=${{ env.REGISTRY }}/${IMAGE_NAME_LOWER}" >> "$GITHUB_OUTPUT"

- name: Resolve image version tag
id: version
run: |
IMAGE_TAG="${{ inputs.version || github.event.release.tag_name }}"
if [ -z "${IMAGE_TAG}" ]; then
echo "Image tag is required but was not provided."
exit 1
fi
echo "tag=${IMAGE_TAG}" >> "$GITHUB_OUTPUT"

- name: Log in to the Container registry
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@v6
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ steps.image.outputs.uri }}
tags: |
type=raw,value=latest
type=raw,value=${{ steps.version.outputs.tag }}

- name: Build and push Docker image
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
push: true
tags: |
${{ steps.image.outputs.uri }}:latest
${{ steps.image.outputs.uri }}:${{ steps.version.outputs.tag }}
labels: ${{ steps.meta.outputs.labels }}
8 changes: 4 additions & 4 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
backend-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install dependencies
Expand All @@ -36,9 +36,9 @@ jobs:
frontend-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '24'
cache: 'npm'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
51 changes: 34 additions & 17 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ permissions:
contents: write

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
RELEASE_VERSION: ${{ github.event.inputs.version }}

jobs:
pre-check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Ensure workflow is running on allowed branches
run: |
Expand All @@ -47,13 +46,13 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install dependencies
Expand All @@ -73,7 +72,7 @@ jobs:
tar -czf dist/release/backend-onedir-${{ runner.os }}.tar.gz -C dist run_app

- name: Upload Backend Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: backend-onedir-${{ runner.os }}
path: dist/release/backend-onedir-${{ runner.os }}.tar.gz
Expand All @@ -85,13 +84,13 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Download Backend Artifact
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: backend-onedir-${{ runner.os }}
path: dist/run_app
Expand All @@ -110,7 +109,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Electron Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: electron-assets-${{ runner.os }}
path: |
Expand All @@ -128,13 +127,13 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Set up Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install dependencies
Expand All @@ -148,7 +147,7 @@ jobs:
- name: Build Backend (onefile)
run: python build_backend.py onefile
- name: Upload Onefile Artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: backend-onefile-${{ runner.os }}
path: dist/AugmentedQuill*
Expand All @@ -158,14 +157,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Download all artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
path: all-assets
merge-multiple: true

- name: Collect release assets
run: |
mkdir -p release-assets
# Keep only final application installer artifacts, not intermediate backend-only packages
find all-assets -type f \( -name '*Setup*.exe' -o -name '*.AppImage' -o -name '*.dmg' -o -name '*.zip' \) -exec cp {} release-assets/ \;
echo "Release asset candidates:"
ls -la release-assets

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
Expand All @@ -176,6 +183,16 @@ jobs:
prerelease: ${{ github.event.inputs.prerelease }}
commit: ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "all-assets/**/*.{tar.gz,exe,dmg,AppImage,zip}"
artifacts: "release-assets/*"
allowUpdates: true
replacesArtifacts: true

publish-docker:
needs: create-release
permissions:
contents: read
packages: write
uses: ./.github/workflows/build-docker.yml
with:
version: ${{ github.event.inputs.version }}
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Dependency review
uses: actions/dependency-review-action@v4
Expand Down
Loading