Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .github/workflows/generate_artefacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"

git add -f artefacts/
git add -f bindings/flutter/lib/src/trame_builder.dart

git commit -m "Regenerate artefacts automatically [skip ci]" \
|| echo "nothing to commit"
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/publish_to_pub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish to Pub.dev

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+' # Trigger on version tags

jobs:
publish:
runs-on: ubuntu-latest
defaults:
run:
working-directory: bindings/flutter

steps:
- uses: actions/checkout@v4

- uses: subosito/flutter-action@v2
with:
flutter-version: '3.x'
channel: 'stable'

- name: Install dependencies
run: flutter pub get

- name: Verify formatting
run: dart format --output=none --set-exit-if-changed .

- name: Analyze project
run: flutter analyze

- name: Run tests
run: flutter test

- name: Setup Pub Credentials
run: |
mkdir -p ~/.config/dart
echo '${{ secrets.PUB_CREDENTIALS_JSON }}' > ~/.config/dart/pub-credentials.json

- name: Publish to Pub.dev
run: flutter pub publish --force
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ artefacts/trames.json: trame-exporter
.PHONY: primitives
primitives: artefacts/trames.json
@ python generators/generate_primitives.py
@ cp artefacts/flutter/trame_builder.dart bindings/flutter/lib/src/trame_builder.dart
@ $(LOG_TIME) "$(C_GREEN) CP $(C_PURPLE) trame_builder.dart $(C_RESET)"



.PHONY: doc
Expand Down
40 changes: 38 additions & 2 deletions artefacts/cpp/trame_builder.cpp

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

2 changes: 1 addition & 1 deletion artefacts/docs/trames.rst

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

Loading