diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..ee71102 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +name: Publish to Pub.dev + +on: + push: + tags: + - "v[0-9]+.[0-9]+.[0-9]+*" # Match tags like v1.0.0, v0.1.0-alpha, etc. + +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + permissions: + id-token: write # Required for authentication using OIDC + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Dart + uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart pub get + + - name: Verify Build (Analyze and Test) + run: | + dart analyze + dart test + + - name: Publish package + run: dart pub publish --force + environment: + name: pub.dev diff --git a/.pubignore b/.pubignore index 8a42487..2868ab8 100644 --- a/.pubignore +++ b/.pubignore @@ -12,4 +12,5 @@ CODE_OF_CONDUCT.md CONTRIBUTING.md benchmark/ ROADMAP.md -analysis_options.yaml \ No newline at end of file +analysis_options.yaml +wasm/ \ No newline at end of file