diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..c6ebc74 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,36 @@ +# name: Flutter CI + +# on: +# push: +# branches: [main] +# pull_request: +# branches: [main] + +# jobs: +# build: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout repository +# uses: actions/checkout@v3 + +# - name: Set up Flutter +# uses: subosito/flutter-action@v2 +# with: +# channel: stable + +# - name: Install dependencies +# run: flutter pub get + +# - name: Run Analyze +# run: flutter analyze --no-fatal-infos ./lib/**/*.dart ./test/**/*.dart + +# - name: Check format +# run: dart format --set-exit-if-changed ./lib ./test + +# - name: Run tests +# run: flutter test --coverage + +# - name: Upload coverage reports to Codecov +# uses: codecov/codecov-action@v4.0.1 +# with: +# token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..6eef123 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +# .github/workflows/publish.yml +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + + - name: Install dependencies + run: flutter pub get + + - name: Publish + run: dart pub publish --force \ No newline at end of file