Skip to content

Commit

Permalink
Release v0.3.0 (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrf committed Mar 26, 2024
1 parent fd96a79 commit e99958b
Show file tree
Hide file tree
Showing 8 changed files with 123 additions and 28 deletions.
48 changes: 29 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,17 @@ jobs:
context: .
file: docker/Dockerfile
push: false
load: true
target: racine
tags: racine:latest
cache-from: type=gha
cache-to: type=gha,mode=max
outputs: type=docker,dest=/tmp/racine.tar

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: racine
path: /tmp/racine.tar

run-tests:
name: Run tests in docker
Expand All @@ -150,14 +156,11 @@ jobs:
if: github.event_name == 'push'
name: Push docker image
runs-on: ubuntu-latest
needs: [build-docker, run-tests]
needs: [build-docker, run-tests, version]
env:
COMPOSE_FILE: docker/docker-compose.yml

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Login to ghcr
uses: docker/login-action@v3
with:
Expand All @@ -168,21 +171,28 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Push to ghcr
uses: docker/build-push-action@v5
- name: Download artifact
uses: actions/download-artifact@v4
with:
context: .
file: docker/Dockerfile
push: true
target: racine
tags: ghcr.io/hgrf/racine:latest
cache-from: type=gha
cache-to: type=gha,mode=max
name: racine
path: /tmp

- name: Load Docker image
run: |
docker load --input /tmp/racine.tar
docker image ls -a
- name: Push to ghcr
run: |
docker tag racine:latest \
ghcr.io/hgrf/racine:latest && \
docker push ghcr.io/hgrf/racine:latest && \
echo Successfully pushed ghcr.io/hgrf/racine:latest
- name: Push to ghcr (tagged)
if: startsWith(github.ref, 'refs/tags/')
run: |
sed s'/refs\/tags\///g' <(echo "${{ github.ref }}") | (read TAG; \
sed s'/refs\/tags\/v//g' <(echo "${{ github.ref }}") | (read TAG; \
docker tag ghcr.io/hgrf/racine:latest \
ghcr.io/hgrf/racine:$TAG && \
docker push ghcr.io/hgrf/racine:$TAG && \
Expand Down Expand Up @@ -348,22 +358,22 @@ jobs:
needs: [version, build-appimage, build-macos, build-macos-arm64, build-windows, build-docker, run-tests]
steps:
- name: Download AppImage
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "RacineDesktop AppImage ${{ needs.version.outputs.VERSION }}"

- name: Download macOS x64 executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "RacineDesktop ${{ needs.version.outputs.VERSION }} macOS x64 dmg"

- name: Download macOS arm64 executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "RacineDesktop ${{ needs.version.outputs.VERSION }} macOS arm64 dmg"

- name: Download Windows executable
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: "RacineDesktop Setup ${{ needs.version.outputs.VERSION }}"

Expand Down
87 changes: 87 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
## v0.3.0

### Features

* add link to latest release on help page
* replace "add sample image" by an icon
* add button to clear sample image
* rework header of sample editor (#218)
* use smaller headings on welcome and help page
* more detail in page titles
* center navbar brand on small screens
* remove top navbar controls from login page and improve the login page layout
* add external resources to help
* update UI icons to Font Awesome icons
* update Racine icon and favicon
* run celery tasks synchronously in testing and standalone

### Bugfixes and other improvements

* fix sample search and selection on non-mainview
* log unhandled exceptions app-wide, not only for main blueprint
* log exceptions also in development
* add default error message to AjaxView
* refactor toggle button code
* refactor initialization of R (#217)
* fix: do not initialize hidden CKEditor more than once
* log unauthorized API requests and do not force status to 500
* improve error handling
* improve emailing API spec
* refactor SMB resource API (#209) and user-related API (#215)
* refactor dialog templates
* move generic form methods to base class
* add some API tests for sample and action creation (#213) and fix some pytest warnings (#214)
* do not transmit usage stats in testing
* backend: API refactoring and build improvements
* print: restrict image resizing to print area
* FormDialog: hide modal dialog before showing error dialog
* fix display of recent samples on welcome page
* refactor and clean up templates and CSS
* minify JS
* use more appropriate response codes for mail requests
* refactor icons and add bootstrap and fontawesome icons
* FormDialog: update CKEditor data before serialization
* publish usage stats on startup
* backend refactoring and cleanup
* fix action count in usage stats

### Security patches

* bump cryptography from 41.0.6 to 42.0.4 (#231)
* Bump pillow from 10.0.1 to 10.2.0
* Bump jinja2 from 3.1.2 to 3.1.3

### Desktop standalone demo app

* implement threaded async tasks and simple kv store (#204) and enable email config and usage stats
* bump app-builder-lib and electron-builder in /desktop (#232)
* clean killing of python subprocess at shutdown (#228)
* store data in home dir (#227)
* add standalone executable for x64 and arm64 macOS
* update package.json
* add code signing for macOS and Windows executables
* add some documentation about Desktop app
* Windows: fix welcome page

### Build and CI

* add sonarcloud badge to README
* build: clean up Makefile (#223)
* CI improvements (caching, prebuild app-static, combining builds in one workflow etc.)
* exclude some folders from black and flake8
* Desktop app workflows: fix version determination for pull requests

### devcontainer

* set up file association for jinja templates
* add editor ruler
* add bash-completion

### Website

* bump follow-redirects from 1.15.2 to 1.15.6 in /site (#233)
* bump ip from 2.0.0 to 2.0.1 in /site (#230)
* add testimonial by Everton Arrighi
* add download links for demo apps
* fix website build

## v0.2.0

### Features
Expand Down
4 changes: 2 additions & 2 deletions desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "racine-desktop",
"version": "0.2.0",
"version": "0.3.0",
"description": "A desktop demo of the Racine lab book",
"main": "renderer.js",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,3 @@ ENV FLASK_CONFIG production
COPY ./app /app/app/
COPY ./migrations /app/migrations/
COPY ./docker/uwsgi.ini /app/docker/uwsgi.ini

COPY ./app/static /app/app/static
4 changes: 2 additions & 2 deletions js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "racine_js",
"version": "0.2.0",
"version": "0.3.0",
"type": "module",
"description": "Racine JavaScript library",
"license": "GPL v3",
Expand Down
2 changes: 1 addition & 1 deletion version.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
RACINE_VERSION,v0.2.0
RACINE_VERSION,v0.3.0
RACINE_API_VERSION,0.3.0

0 comments on commit e99958b

Please sign in to comment.