Skip to content

fix: add text and bg colors to loading toast (#217) #39

fix: add text and bg colors to loading toast (#217)

fix: add text and bg colors to loading toast (#217) #39

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
versioning:
name: Versioning
runs-on: ubuntu-latest
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
with:
branches: main
tag_format: ${version}
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
cloudflare:
name: Live demo
needs: versioning
if: ${{ needs.versioning.outputs.new_release_published == 'true' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update app version in package.json
run: node .github/workflows/publish/update-package-json.cjs ${{ needs.versioning.outputs.new_release_version }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- name: Deploy
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
command: pages publish .svelte-kit/cloudflare --project-name hollama
electron:
needs: versioning
if: ${{ needs.versioning.outputs.new_release_published == 'true' }}
name: Desktop app (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-13, macos-latest, ubuntu-latest, windows-latest] # macos-13 is the lastest one on x86
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Update app version in package.json
run: node .github/workflows/publish/update-package-json.cjs ${{ needs.versioning.outputs.new_release_version }}
- name: Install Electron & SvelteKit's dependencies
run: npm ci
- name: Build & release Electron app
env:
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
CSC_LINK: ${{ secrets.APPLE_CERTIFICATE }}
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
run: npm run electron:build
docker:
needs: versioning
if: ${{ needs.versioning.outputs.new_release_published == 'true' }}
name: Docker image
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update app version in package.json
run: node .github/workflows/publish/update-package-json.cjs ${{ needs.versioning.outputs.new_release_version }}
- name: Build & publish
uses: mr-smithers-excellent/docker-build-push@v6
with:
image: hollama
registry: ghcr.io
multiPlatform: true
platform: linux/amd64,linux/arm64
tags: latest, ${{ needs.versioning.outputs.new_release_version }}
username: ${{ secrets.GH_REGISTRY_USERNAME }}
password: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}