9 Commits

Author SHA1 Message Date
44e08b62fd bump: v0.0.34 -> v0.0.35
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Successful in 1m32s
Release / release (push) Successful in 3m47s
Release / package (push) Successful in 1m37s
Update / update (push) Failing after 59s
2025-05-16 18:47:11 -04:00
3feb35ea7b fix: formatting
All checks were successful
Check / check (push) Successful in 52s
2025-05-16 18:45:39 -04:00
849fec6f01 fix: bump real openapi.yaml too
All checks were successful
Check / check (push) Successful in 51s
2025-05-16 18:42:24 -04:00
d27ee1202b bump: v0.0.33 -> v0.0.34
All checks were successful
Check / check (push) Has been skipped
2025-05-16 18:38:32 -04:00
32ac21afd2 fix: move buf to proto dir so submodules get the same deps
All checks were successful
Check / check (push) Successful in 1m35s
2025-05-16 18:35:48 -04:00
39959f041d bump: v0.0.32 -> v0.0.33
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Successful in 1m34s
Release / release (push) Successful in 3m34s
Release / package (push) Failing after 13s
2025-05-16 18:04:34 -04:00
124d702ec4 fix: there was no space
All checks were successful
Check / check (push) Successful in 51s
2025-05-16 18:03:02 -04:00
2587483733 bump: v0.0.31 -> v0.0.32
Some checks failed
Check / check (push) Has been skipped
Release / check (push) Successful in 1m32s
Release / release (push) Failing after 1m49s
Release / package (push) Has been skipped
2025-05-16 17:57:30 -04:00
575ec574dd fix: add dot to build
All checks were successful
Check / check (push) Successful in 52s
2025-05-16 17:55:48 -04:00
12 changed files with 38 additions and 26 deletions

View File

@ -47,12 +47,12 @@ jobs:
- name: Build - name: Build
run: > run: >
nix build nix build
#trevstack-linux-amd64 .#trevstack-linux-amd64
#trevstack-linux-arm64 .#trevstack-linux-arm64
#trevstack-linux-arm .#trevstack-linux-arm
#trevstack-windows-amd64 .#trevstack-windows-amd64
#trevstack-darwin-amd64 .#trevstack-darwin-amd64
#trevstack-darwin-arm64 .#trevstack-darwin-arm64
- name: Release - name: Release
uses: akkuman/gitea-release-action@v1 uses: akkuman/gitea-release-action@v1
@ -65,13 +65,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: release # Wait for binary cache to propagate needs: release # Wait for binary cache to propagate
steps: steps:
- name: Get domain
id: get_domain
run: |
DOMAIN=$(basename ${{ gitea.server_url }})
echo $DOMAIN
echo "domain=$DOMAIN" >> $GITHUB_OUTPUT
- name: Docker meta - name: Docker meta
id: meta id: meta
uses: docker/metadata-action@v5 uses: docker/metadata-action@v5
with: with:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
${{ gitea.server_url }}/${{ gitea.repository }} ${{ steps.get_domain.outputs.domain }}/${{ gitea.repository }}
# generate Docker tags based on the following events/attributes # generate Docker tags based on the following events/attributes
tags: | tags: |
type=ref,event=branch type=ref,event=branch

View File

@ -51,12 +51,12 @@ jobs:
- name: Build - name: Build
run: > run: >
nix build nix build
#trevstack-linux-amd64 .#trevstack-linux-amd64
#trevstack-linux-arm64 .#trevstack-linux-arm64
#trevstack-linux-arm .#trevstack-linux-arm
#trevstack-windows-amd64 .#trevstack-windows-amd64
#trevstack-darwin-amd64 .#trevstack-darwin-amd64
#trevstack-darwin-arm64 .#trevstack-darwin-arm64
- name: Release - name: Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2

View File

@ -19,7 +19,9 @@ echo "${version} -> ${next_version}"
echo "bumping openapi" echo "bumping openapi"
cd "${git_root}" cd "${git_root}"
sed -i -e "s/${version}/${next_version}/g" openapi.yaml sed -i -e "s/${version}/${next_version}/g" openapi.yaml
sed -i -e "s/${version}/${next_version}/g" client/static/openapi/openapi.yaml
git add openapi.yaml git add openapi.yaml
git add client/static/openapi/openapi.yaml
echo "bumping client" echo "bumping client"
cd "${git_root}/client" cd "${git_root}/client"

View File

@ -42,7 +42,7 @@ It's that simple. If you're feeling fancy, install [direnv](https://direnv.net/)
- `nix flake check`: runs all validations - `nix flake check`: runs all validations
- `buf lint` & `buf generate`: lints and generates code from protocol buffers - `buf lint proto` & `buf generate`: lints and generates code from protocol buffers
- `sqlc vet` & `sqlc generate`: verifies and generates code from SQL files - `sqlc vet` & `sqlc generate`: verifies and generates code from SQL files
@ -55,7 +55,7 @@ To use github actions for CI/CD, you'll need to create a fine-grained personal a
- Contents (read and write) - Contents (read and write)
- Pull requests (read and write) - Pull requests (read and write)
and change some settings for the repository: And change some settings for the repository:
- General -> Allow auto-merge: true - General -> Allow auto-merge: true
- Rules -> Rulesets -> New ruleset - Rules -> Rulesets -> New ruleset
@ -75,7 +75,7 @@ To use gitea actions for CI/CD, you'll need to create an [API token](https://doc
- write:repository - write:repository
- write:package - write:package
and change some settings for the repository: And change some settings for the repository:
- Repository -> Delete pull request branch after merge by default: true - Repository -> Delete pull request branch after merge by default: true
- Branches -> Add New Rule - Branches -> Add New Rule

View File

@ -1,5 +1,8 @@
version: v2 version: v2
clean: true clean: true
inputs:
- directory: proto
managed: managed:
enabled: true enabled: true
override: override:

View File

@ -1,12 +1,12 @@
{ {
"name": "trevstack", "name": "trevstack",
"version": "0.0.31", "version": "0.0.35",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "trevstack", "name": "trevstack",
"version": "0.0.31", "version": "0.0.35",
"devDependencies": { "devDependencies": {
"@bufbuild/protovalidate": "^0.1.1", "@bufbuild/protovalidate": "^0.1.1",
"@connectrpc/connect": "^2.0.2", "@connectrpc/connect": "^2.0.2",

View File

@ -1,7 +1,7 @@
{ {
"name": "trevstack", "name": "trevstack",
"private": true, "private": true,
"version": "0.0.31", "version": "0.0.35",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",

View File

@ -3,8 +3,8 @@ servers:
- url: /grpc - url: /grpc
info: info:
title: Trevstack API title: Trevstack API
version: 1.0.0 version: 0.0.33
description: API for trevstack description: API for Trevstack
contact: contact:
name: Trev name: Trev
email: spam@trev.xyz email: spam@trev.xyz

View File

@ -21,7 +21,7 @@
... ...
}: let }: let
pname = "trevstack"; pname = "trevstack";
version = "0.0.31"; version = "0.0.35";
build-systems = [ build-systems = [
"x86_64-linux" "x86_64-linux"
@ -127,7 +127,7 @@
pname = "check-client"; pname = "check-client";
inherit version; inherit version;
src = ./client; src = ./client;
npmDepsHash = "sha256-9FUZNG+LEGWop0zpmTPx9d6TUOzjAMtLnxiH6HY6Vz4="; npmDepsHash = "sha256-3Ry+R3xOtYmQXXbCxnoteIm41R8O3CYBJ4JxIfMjZOM=";
dontNpmInstall = true; dontNpmInstall = true;
buildPhase = '' buildPhase = ''
@ -190,7 +190,7 @@
client = pkgs.buildNpmPackage { client = pkgs.buildNpmPackage {
inherit pname version; inherit pname version;
src = ./client; src = ./client;
npmDepsHash = "sha256-9FUZNG+LEGWop0zpmTPx9d6TUOzjAMtLnxiH6HY6Vz4="; npmDepsHash = "sha256-3Ry+R3xOtYmQXXbCxnoteIm41R8O3CYBJ4JxIfMjZOM=";
installPhase = '' installPhase = ''
cp -r build "$out" cp -r build "$out"

View File

@ -3,7 +3,7 @@ servers:
- url: /grpc - url: /grpc
info: info:
title: Trevstack API title: Trevstack API
version: 0.0.31 version: 0.0.35
description: API for Trevstack description: API for Trevstack
contact: contact:
name: Trev name: Trev

View File

@ -1,6 +1,6 @@
# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml # For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml
version: v2 version: v2
modules: modules:
- path: proto - path: .
deps: deps:
- buf.build/bufbuild/protovalidate - buf.build/bufbuild/protovalidate