Skip to content

Commit c4a5ef5

Browse files
committed
Prepare everything for v1.0
1 parent 7cf857b commit c4a5ef5

File tree

11 files changed

+128
-296
lines changed

11 files changed

+128
-296
lines changed

.github/workflows/main.yaml

Lines changed: 93 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ name: Build Compotes app.
22

33
on:
44
push:
5-
branches: [ rewrite ]
5+
branches: [ main ]
6+
tags: [ 'v[0-9]+.*' ]
67
pull_request:
7-
branches: [ rewrite ]
8+
branches: [ main ]
89

910
jobs:
1011
build:
@@ -17,8 +18,7 @@ jobs:
1718

1819
runs-on: ${{ matrix.os }}
1920
steps:
20-
- { name: "Checkout the code", uses: actions/checkout@v2 }
21-
21+
- uses: actions/checkout@v4
2222
- name: 🗄️ Setup Rust cache
2323
uses: actions/cache@v2
2424
with:
@@ -32,11 +32,11 @@ jobs:
3232
- name: 🍃 Install Node.js
3333
uses: actions/setup-node@v2
3434
with:
35-
node-version: 16
36-
cache: yarn
37-
cache-dependency-path: |
38-
yarn.lock
39-
tests/webdriverio/yarn.lock
35+
node-version: 18
36+
37+
- name: 🍃 Install Yarn
38+
run: |
39+
npm i -g npm yarn
4040
4141
- name: 🦀 Install Rust
4242
uses: actions-rs/toolchain@v1
@@ -77,10 +77,88 @@ jobs:
7777
run: |
7878
yarn test
7979
80-
- name: 🚀 Upload release artifacts
81-
uses: actions/upload-artifact@v2
80+
- name: 🗃 Store artifacts (release only)
81+
uses: actions/upload-artifact@v4
82+
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/v')
8283
with:
83-
name: release-${{ matrix.os }}
84-
path: |
85-
src-tauri/target/release/compotes*
86-
src-tauri/target/release/bundle/*
84+
name: compotes_artifacts_${{ matrix.os }}
85+
overwrite: true
86+
path: |
87+
src-tauri/target/release/compotes
88+
src-tauri/target/release/bundle/deb/*.deb
89+
90+
- name: 🗃 Store Windows artifacts (release only)
91+
uses: actions/upload-artifact@v4
92+
if: matrix.os == 'windows-latest' && startsWith(github.ref, 'refs/tags/v')
93+
with:
94+
name: compotes_artifacts_${{ matrix.os }}
95+
overwrite: true
96+
path: |
97+
src-tauri/target/release/compotes.exe
98+
src-tauri/target/release/bundle/msi/*.msi
99+
100+
release:
101+
runs-on: ubuntu-latest
102+
needs:
103+
- build
104+
if: startsWith(github.ref, 'refs/tags/v')
105+
steps:
106+
- uses: actions/checkout@v4
107+
108+
- name: Create release
109+
uses: actions/create-release@v1
110+
id: create_release
111+
with:
112+
draft: false
113+
prerelease: false
114+
release_name: ${{ steps.version.outputs.version }}
115+
tag_name: ${{ github.ref }}
116+
#body_path: CHANGELOG.md
117+
env:
118+
GITHUB_TOKEN: ${{ github.token }}
119+
120+
- name: 🗃 Download built artifacts
121+
uses: actions/download-artifact@v4
122+
with:
123+
path: src-tauri/target/release
124+
merge-multiple: true
125+
126+
- name: Upload Windows executable
127+
uses: svenstaro/upload-release-action@v2
128+
with:
129+
repo_token: ${{ secrets.GITHUB_TOKEN }}
130+
file: src-tauri/target/release/compotes.exe
131+
asset_name: compotes_${{ github.ref_name }}.exe
132+
tag: ${{ github.ref_name }}
133+
overwrite: true
134+
file_glob: true
135+
136+
- name: Upload Windows installer
137+
uses: svenstaro/upload-release-action@v2
138+
with:
139+
repo_token: ${{ secrets.GITHUB_TOKEN }}
140+
file: src-tauri/target/release/bundle/msi/compotes_*.msi
141+
asset_name: compotes_${{ github.ref_name }}_installer.msi
142+
tag: ${{ github.ref_name }}
143+
overwrite: true
144+
file_glob: true
145+
146+
- name: Upload Linux executable
147+
uses: svenstaro/upload-release-action@v2
148+
with:
149+
repo_token: ${{ secrets.GITHUB_TOKEN }}
150+
file: src-tauri/target/release/compotes
151+
asset_name: compotes_${{ github.ref_name }}
152+
tag: ${{ github.ref_name }}
153+
overwrite: true
154+
file_glob: true
155+
156+
- name: Upload Linux deb package
157+
uses: svenstaro/upload-release-action@v2
158+
with:
159+
repo_token: ${{ secrets.GITHUB_TOKEN }}
160+
file: src-tauri/target/release/bundle/deb/compotes_*.deb
161+
asset_name: compotes_${{ github.ref_name }}.deb
162+
tag: ${{ github.ref_name }}
163+
overwrite: true
164+
file_glob: true

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# v0.20.0
1+
# v1.0
22

33
Complete rewrite of the old hosted PHP/Symfony app into a Desktop app built with Svelte, Typescript, Rust and Tauri.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@orbitale/compotes-app",
33
"version": "1.0.0",
44
"private": true,
5-
"license": "LGPL-3.0-or-later",
5+
"license": "AGPL-3",
66
"scripts": {
77
"app": "concurrently --names \"front,back\" --raw \"vite dev\" \"tauri dev\"",
88
"dev": "vite dev",

src-tauri/Cargo.lock

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
2-
name = "app"
3-
version = "0.1.0"
4-
description = "A Tauri App"
5-
authors = [ "you" ]
6-
license = ""
7-
repository = ""
8-
default-run = "app"
2+
name = "compotes"
3+
version = "1.0.0"
4+
description = "A desktop app to visualize bank account operations"
5+
authors = [ "Alex \"Pierstoval\" Rock <[email protected]>" ]
6+
license = "AGPL-3"
7+
repository = "https://github.com/Orbitale/Compotes"
8+
default-run = "compotes"
99
edition = "2018"
1010

1111
[build-dependencies]
@@ -28,3 +28,8 @@ tauri-codegen = { version = "1.4", features = [ ] }
2828

2929
[features]
3030
custom-protocol = [ "tauri/custom-protocol" ]
31+
32+
[profile.release]
33+
codegen-units = 1
34+
lto = true
35+
strip = "symbols"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"package": {
33
"productName": "compotes",
4-
"version": "0.1.0"
4+
"version": "1.0.0"
55
},
66
"build": {
77
"distDir": "./target/frontend-build",

0 commit comments

Comments
 (0)